threads/118910: Multithreading problem
davidxu at FreeBSD.org
Fri Dec 21 00:07:20 PST 2007
Daniel Eischen wrote:
> I don't think it is as big a change as you think it is. We already
> have several layers of priorities (interrupt, time-share, idle, ?).
> All threads belong to these classes. As long as priority inheritence
> works, there should be no problems. The problems seem to occur when
> we try to inject artificial priorities into threads, like using
> msleep(). I think we are better off just letting threads run based
> on their own base priority and whatever their inherited priority is.
For test purpose, you may try to ignore thread priority parameter
in msleep(), I didn't test this, but it does change the FreeBSD
behavior. I don't know any side effect since I am unable to test
all applications in the world, maybe you can start a project to hack
More information about the freebsd-threads