pin/bind a pthread to a processor? (take 2)

Daniel Eischen deischen at freebsd.org
Fri Feb 16 19:04:17 UTC 2007


What you are trying to do is real-time work.  You will need
to place your thread(s) or process in the real-time class
or priority range and modify the scheduler(s) if necessary
to support RT.  I'm not familiar with the schedulers, but
I suspect most of your work should be spent on getting
one of the schedulers (whichever can more easily support
it) to operate correctly for RT threads and processes.

RT is something that I found Solaris is pretty good at,
at least with later versions of Solaris.  You might
investigate that if you can't get FreeBSD to operate
efficiently/correctly for RT processing.  We have
been using Solaris for real-time simulation for many
years now.  I would love to be able to use FreeBSD
as well, especially because we can embed it a lot
easier than Solaris, but I don't think it's quite 
there yet.

-- 
DE


More information about the freebsd-hackers mailing list