tasklets vs. workqueues
When should I use tasklets and when should I user workqueues? What are the differences?
cu
Christian
Quoted 2 lines · Christian Kögler
When should I use tasklets and when should I user workqueues? What are the differences?
To quote "Linux Kernel Development" (Which I am currently reading):
Work queues defer work into a kernel thread-the work always runs in process context. Most importantly, work queues are schedulable and can therefore sleep.
Normally, there is little decision between work queues or sotftirqs/tasklets. If the deferred work need to sleep, work queues are used. If the deferred work need not sleepa, softirqs or tasklets are used.
[end quote]
Hope this helped :)
Signature · 2 lines
Med vennlig hilsen Kristian Lyngstøl
Quoted 6 lines · Kristian Lyngstøl
Quoted 2 lines · Christian Kögler
When should I use tasklets and when should I user workqueues? What are the differences?
Quoted 7 lines
To quote "Linux Kernel Development" (Which I am currently reading):
Work queues defer work into a kernel thread-the work always runs in process context. Most importantly, work queues are schedulable and can therefore sleep.
Normally, there is little decision between work queues or sotftirqs/tasklets.
If the deferred work need to sleep, work queues are used. If the deferred work need not sleepa, softirqs or tasklets are used.
Being in process context, you can also change the priority and schedule policy as needed to fit your application, while you are rather stuck with tasklets in this regard.
Signature · 3 lines
George Anzinger [email protected] High-res-timers: http://sourceforge.net/projects/high-res-timers/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml