
sysconf 指类 Unix/POSIX 系统中的接口(通常是 C 标准库函数 sysconf()),用于在运行时查询系统配置与资源限制,例如页面大小、CPU 数量、可打开文件数上限等。(在某些环境里也可能被当作“system configuration”的简写使用。)
/ss.knf/
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) 来估算系统能支持的并行程度。
sysconf 常被理解为 system configuration(系统配置)的缩写;在 POSIX 语境中,它特指用于“查询系统配置值”的接口名称,体现了“system(系统)+ conf/configuration(配置)”的组合含义。
sysconf()。sysconf()。sysconf() 形式定义其语义与可查询的 _SC_* 名称。