JezK
Edit File: processor_count-i.ri
U:RDoc::AnyMethod[iI"processor_count:EFI":Concurrent::Utility::ProcessorCounter#processor_count;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NNumber of processors seen by the OS and used for process scheduling. For ;TI"Lperformance reasons the calculated value will be memoized on the first ;TI" call.;To:RDoc::Markup::BlankLine o; ; [I"4When running under JRuby the Java runtime call ;TI"P`java.lang.Runtime.getRuntime.availableProcessors` will be used. According ;TI"Jto the Java documentation this "value may change during a particular ;TI"Jinvocation of the virtual machine... [applications] should therefore ;TI"Koccasionally poll this property." Subsequently the result will NOT be ;TI"memoized under JRuby.;T@o; ; [ I"6On Windows the Win32 API will be queried for the ;TI"L`NumberOfLogicalProcessors from Win32_Processor`. This will return the ;TI"Ftotal number "logical processors for the current instance of the ;TI"9processor", which taked into account hyperthreading.;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"6AIX: /usr/sbin/pmcycles (AIX 5+), /usr/sbin/lsdev;To;;0; [o; ; [I"DAlpha: /usr/bin/nproc (/proc/cpuinfo exists but cannot be used);To;;0; [o; ; [I"BSD: /sbin/sysctl;To;;0; [o; ; [I"Cygwin: /proc/cpuinfo;To;;0; [o; ; [I"/Darwin: /usr/bin/hwprefs, /usr/sbin/sysctl;To;;0; [o; ; [I"HP-UX: /usr/sbin/ioscan;To;;0; [o; ; [I"IRIX: /usr/sbin/sysconf;To;;0; [o; ; [I"Linux: /proc/cpuinfo;To;;0; [o; ; [I"Minix 3+: /proc/cpuinfo;To;;0; [o; ; [I"Solaris: /usr/sbin/psrinfo;To;;0; [o; ; [I""Tru64 UNIX: /usr/sbin/psrinfo;To;;0; [o; ; [I" UnixWare: /usr/sbin/psrinfo;T@o; ; [I"J@return [Integer] number of processors seen by the OS or Java runtime;T@o; ; [I"k@see https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb;T@o; ; [I"`@see http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#availableProcessors() ;TI"H@see http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx;T: @fileI"0lib/concurrent/utility/processor_counter.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@gFI"ProcessorCounter;FcRDoc::NormalClass00