module Concurrent

def self.physical_processor_count

Other tags:
    See: http://linux.die.net/man/8/sysctl -
    See: http://www.unix.com/man-page/osx/1/HWPREFS/ -
    See: http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx -
    See: https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb -

Returns:
  • (Integer) - number physical processor cores on the current system
def self.physical_processor_count
  processor_counter.physical_processor_count
end