Module: Wolfpack
- Defined in:
- lib/wolfpack.rb,
lib/wolfpack/version.rb
Defined Under Namespace
Classes: CLI, Configurator, Runner
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
-
.processor_count ⇒ Object
Gets the number of “processors” on the current machine.
Class Method Details
.processor_count ⇒ Object
Gets the number of “processors” on the current machine. This does not map directly to physical cores. For example, a hyperthreaded Intel chip may have 2 physical cores but show up as 4 cores.
9 10 11 |
# File 'lib/wolfpack.rb', line 9 def self.processor_count @processor_count ||= Parallel.processor_count end |