⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Etc
/
Edit File: nprocessors-c.ri
U:RDoc::AnyMethod[iI"nprocessors:ETI"Etc::nprocessors;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Returns the number of online processors.;To:RDoc::Markup::BlankLine o; ; [I":The result is intended as the number of processes to ;TI""use all available processors.;T@o; ; [I"&This method is implemented using:;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"sched_getaffinity(): Linux;To;;0; [o; ; [I"rsysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"require 'etc' ;TI"p Etc.nprocessors #=> 4 ;T:@format0o; ; [I"PThe result might be smaller number than physical cpus especially when ruby ;TI"Lprocess is bound to specific cpus. This is intended for getting better ;TI"parallel processing.;T@o; ; [I"Example: (Linux);T@o;; [I"Blinux$ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2;T;0: @fileI"ext/etc/etc.c;T:0@omit_headings_from_table_of_contents_below000[ I"();T@4FI"Etc;TcRDoc::NormalModule00
Simpan