Method: Cuboid::System#cpu_count

Defined in:
lib/cuboid/system.rb

#cpu_countInteger

Returns Amount of CPU cores.

Returns:

  • (Integer)

    Amount of CPU cores.



74
75
76
# File 'lib/cuboid/system.rb', line 74

def cpu_count
    @cpu_count ||= platform.cpu_count
end