mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c8c88a3e9
commit
f65a15b0cf
1 changed files with 3 additions and 3 deletions
|
@ -962,9 +962,9 @@ etc_nprocessors_affin(void)
|
|||
* The result is intended as the number of processes to
|
||||
* use all available processors.
|
||||
*
|
||||
* This method is implemented as:
|
||||
* - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX
|
||||
* This method is implemented using:
|
||||
* - sched_getaffinity(): Linux
|
||||
* - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
|
@ -977,7 +977,7 @@ etc_nprocessors_affin(void)
|
|||
*
|
||||
* Example: (Linux)
|
||||
*
|
||||
* $ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2
|
||||
* linux$ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
|
|
Loading…
Reference in a new issue