Can I bind POSIX thread to cpu core?

2009-06-28 Thread Михаил Кипа
I have system with 4 core cpu. How can I bind POSIX thread to the one core? I mean that this thread can be executed on the fixed core. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe

Re: Can I bind POSIX thread to cpu core?

2009-06-28 Thread Dan Nelson
In the last episode (Jun 28): I have system with 4 core cpu. How can I bind POSIX thread to the one core? I mean that this thread can be executed on the fixed core. See the cpuset(2) and cpuset_setaffinity(2) manpages. Something like this should work: #include err.h #include stdio.h #include