Re: Tasklets vs. Task Queues for Deferred Processing

From: Jonathan Corbet (corbet@lwn.net)
Date: Sat Mar 29 2003 - 16:48:22 EST


> I have read in the O'Reilly linux device drivers
> book that tasklets always run in interrupt time. Also, I guess the only
> task_queue that is in process context is the scheduler task queue. I've
> seen in a few places that task queues are on their way out and tasklets
> are being used instead. Is this completely true?

All true. If you're developing for 2.4, you can use schedule_task() and
life will be OK. For 2.5, you really want to use work queues instead; see
http://lwn.net/Articles/23634/ for a description of how to do that.

jon

Jonathan Corbet
Executive editor, LWN.net
corbet@lwn.net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:34 EST