V2EX  ›  英汉词典

SYSCONF

释义 Definition

sysconf 指类 Unix/POSIX 系统中的接口(通常是 C 标准库函数 sysconf()),用于在运行时查询系统配置与资源限制,例如页面大小、CPU 数量、可打开文件数上限等。(在某些环境里也可能被当作“system configuration”的简写使用。)

发音 Pronunciation (IPA)

/ˈsɪs.kɒnf/

例句 Examples

The program uses sysconf to get the page size.
程序使用 sysconf 来获取页面大小。

Before creating many threads, we called sysconf(_SC_NPROCESSORS_ONLN) to estimate how much parallelism the system can support.
在创建大量线程之前,我们调用 sysconf(_SC_NPROCESSORS_ONLN) 来估算系统能支持的并行程度。

词源 Etymology

sysconf 常被理解为 system configuration(系统配置)的缩写;在 POSIX 语境中,它特指用于“查询系统配置值”的接口名称,体现了“system(系统)+ conf/configuration(配置)”的组合含义。

相关词 Related Words

文学与作品 Literary Works

  • Advanced Programming in the UNIX Environment(W. Richard Stevens, Stephen A. Rago)中在“系统限制/系统配置查询”相关章节会使用并讲解 sysconf()
  • The Linux Programming Interface(Michael Kerrisk)在介绍 POSIX 系统接口、进程与资源限制时多次出现 sysconf()
  • POSIX/SUS (Single UNIX Specification) 官方规范文本中以 sysconf() 形式定义其语义与可查询的 _SC_* 名称。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5469 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 08:55 · PVG 16:55 · LAX 01:55 · JFK 04:55
♥ Do have faith in what you're doing.