Hacker News new | ask | show | jobs
by jjslocum3 910 days ago
I understand this is a Python-centric source, but without having done my homework I'd have thought Python wouldn't be a particularly great language for dealing with these low level concerns. Wouldn't it be much easier in C? In java it's as simple as Runtime.getRuntime().availableProcessors()
1 comments

I mean other than being wrapped in a useless singleton, that's the same as the 'os.cpu_count()' mentioned in the beginning of the article.