linux 系统调用sysconf函数使用-CSDN博客

网站介绍:在看开源代码的时候,尤其是获取cpu核数的时候,发现了一个很好用的一个函数 #include long sysconf(int name);通过名字可以猜到,该函数是获取一些系统的参数。然后通过man sysconf我们可以知道该函数的使用条件, POSIX allows an application to test at compile or r