It returns 2, and I'm running Linux on a dual-core Intel.
There is some kind of system overhead when running more than one thread, and that causes multi-threaded version of all examples I've tried to run drastically slower than the single-threaded version. I just can't figure out what it is.
Bookmarks