On 2015-06-14 08:35, Robert M. Münch wrote:
Hi, just to x-check if I have the correct understanding:

fibers     = look parallel, are sequential     => use 1 CPU core
threads     = look parallel, are parallel     => use several CPU cores

Is that right?


Yes, however nothing really guarantees multi-threading = multi-core. The kernel reserves the right and will most likely do everything possible to keep your process core-local to use caching efficiently.

There's a few ways around that though

https://msdn.microsoft.com/en-us/library/windows/desktop/ms686247%28v=vs.85%29.aspx
http://man7.org/linux/man-pages/man2/sched_setaffinity.2.html

Reply via email to