multiprocessing.cpu_count()

楽しすぎる。

-bash-3.00$ python
Python 2.6 (r26:66714, Nov 18 2008, 10:17:01) 
[GCC 4.0.3 (gccfss)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> multiprocessing.cpu_count()
24