From: Eric Wong Date: 2014-09-20T04:03:08+00:00 Subject: [ruby-core:65144] Re: [ruby-trunk - Feature #10267] [Open] Number of processors akr@fsij.org wrote: > matz accepted this feature including the method name, > Etc.nprocessors_online. I think the name is too long. How about naming it after the GNU coreutils nproc(1) command? Etc.nproc(:online) I think it is important to be able to get all CPUs, not just online CPUs, too (to workaround old SMP bugs in the kernel): Etc.nproc(:all)