robgleeson/xpool — pull request #5 by Havenwood (2012-12-07 20:10:44+00:00)
Title: Set default pool size to number of CPU processors.

A gem like factor would give more robust cpu count detection (factor is what celluloid uses) but would add a dependency. With knowing that the OS must support fork to use XPool, I put together a minimalist OS detection of OSes that can fork and then a query for them for the number of cores. I have tested the code on Linux, OS X and BSD, but not on Solaris.