rtprio and kse
Petri Helenius
pete at he.iki.fi
Mon Jun 30 07:22:32 PDT 2003
>
> Theoretically any process with rt priority can monopolise the CPU if it
> spins, regardless of whether it's threaded or not..
>
> Is not that what having RT-priority means?
Yes, but in non-threaded environment with multiple processes
competing for CPU libc is not expected to have locks. In threaded
environment it does have them around things like malloc. My concern
is the realtime thread spinlocking waiting for a lock which is held
somewhere which does not get scheduled. These locks are not
visible to the appliation and thus one must either put additional
mutexes around them or know that libc stuff is rtprio-thread-safe.
Pete
More information about the freebsd-threads
mailing list