Date: Tue, 19 May 2009 08:25:13 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: Hans Petter Selasky <hselasky@c2i.net> Subject: Re: Which priority do taskqueues have? Message-ID: <200905190825.13595.jhb@freebsd.org> In-Reply-To: <200905190923.39298.hselasky@c2i.net> References: <200905190923.39298.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905190825.13595.jhb>