SyntaxFix
Write A Post
Hire A Developer
Questions
This should be cross platform. At least for Linux and Mac OS X.
python -c 'import multiprocessing as mp; print(mp.cpu_count())'
A little bit slow but works.