* Differnce between kthread and worqueue ?
@ 2010-05-13 7:25 ratheesh k
2010-05-13 8:10 ` Jiri Slaby
0 siblings, 1 reply; 3+ messages in thread
From: ratheesh k @ 2010-05-13 7:25 UTC (permalink / raw)
To: linux-rt-users, linux-kernel
What is the real difference between these ? . I know that workqueue
run on process context and can sleep ..what about kthread ?
Thanks.
Ratheesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Differnce between kthread and worqueue ?
2010-05-13 7:25 Differnce between kthread and worqueue ? ratheesh k
@ 2010-05-13 8:10 ` Jiri Slaby
2010-05-13 8:12 ` Jiri Slaby
0 siblings, 1 reply; 3+ messages in thread
From: Jiri Slaby @ 2010-05-13 8:10 UTC (permalink / raw)
To: ratheesh k; +Cc: linux-rt-users, linux-kernel
On 05/13/2010 09:25 AM, ratheesh k wrote:
> What is the real difference between these ? . I know that workqueue
> run on process context and can sleep ..what about kthread ?
Well, workqueue runs in a kthread called name_of_your_workqueue/cpu
("/cpu" is omitted when singlethread wq). The difference is that with
workqueue you don't care about looping in kthread, sleeping and managing
a work list.
--
js
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Differnce between kthread and worqueue ?
2010-05-13 8:10 ` Jiri Slaby
@ 2010-05-13 8:12 ` Jiri Slaby
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Slaby @ 2010-05-13 8:12 UTC (permalink / raw)
To: ratheesh k; +Cc: linux-rt-users, linux-kernel
On 05/13/2010 10:10 AM, Jiri Slaby wrote:
> On 05/13/2010 09:25 AM, ratheesh k wrote:
>> What is the real difference between these ? . I know that workqueue
>> run on process context and can sleep ..what about kthread ?
>
> Well, workqueue runs in a kthread called name_of_your_workqueue/cpu
> ("/cpu" is omitted when singlethread wq).
(And when you use just schedule_work and create no workqueue for
yourself, it's "events/cpu" kthread.)
--
js
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-13 8:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 7:25 Differnce between kthread and worqueue ? ratheesh k
2010-05-13 8:10 ` Jiri Slaby
2010-05-13 8:12 ` Jiri Slaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).