Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2001 13:22:07 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Christoph Hellwig <hch@caldera.de>
Cc:        Mike Smith <msmith@FreeBSD.ORG>, Amit Shah <amitshah@techie.com>, freebsd-arch@FreeBSD.ORG
Subject:   Re: threaded device drivers
Message-ID:  <Pine.BSF.4.21.0108181321520.59594-100000@beppo>
In-Reply-To: <20010818220823.C8481@caldera.de>

next in thread | previous in thread | raw e-mail | index | archive | help


On Sat, 18 Aug 2001, Christoph Hellwig wrote:

> On Sat, Aug 18, 2001 at 12:56:19PM -0700, Mike Smith wrote:
> > > You might want to take a look at Linux's schedule_task family of cuntions
> > > (kernel/context.c) - it should be straight forward to implement for FreeBSD.
> > 
> > But entirely unnecessary, since we can already create threads in the 
> > kernel, as I pointed out earlier.  See the kthread* family of functions.
> 
> I know kthread ;)  The differnce is just that you need an entire
> thread this way - threads are eating up far too much ressources
> (e.g. kernel stack) for certain types of problems.  A way to just
> execute some function in user context is a very nice appropeach
> for lots of the smaller stuff.  Some people might also remeber
> NetWare's WorkToDo's that can do this stuff combines with wait queues.

The linux schedule_task functions aren't all that lightweight either.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0108181321520.59594-100000>