Which priority do taskqueues have?
John Baldwin
jhb at freebsd.org
Tue May 19 13:35:28 UTC 2009
On Tuesday 19 May 2009 3:23:39 am Hans Petter Selasky wrote:
> Hi,
>
> I'm about to factor out some taskqueue-alike code from USB(II) and I need to
> know at which priority taskqueues are running. I know there is a priority
> argument which can be specified for TASK_INIT(), but tracing in the code
> shows that this is just a queue-priority. At which priority level is
> taskqueue code being [guaranteed to] run?
It depends on the queue I think. taskqueue_swi runs as a SWI and thus at a
software-interrupt priority. taskqueue_thread runs at the default priority
for kernel threads (currently a rather bogus PVM I think).
--
John Baldwin
More information about the freebsd-hackers
mailing list