Prev: [tip:perf/nmi] x86, watchdog: Fix build error in hw_nmi.c
Next: [PATCH] [ath5k][leds] Ability to disable leds support. If leds support enabled do not force mac802.11 leds layer selection.
From: ratheesh k on 13 May 2010 03:30 What is the real difference between these ? . I know that workqueue run on process context and can sleep ..what about kthread ? Thanks. Ratheesh -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jiri Slaby on 13 May 2010 04:20 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
From: Jiri Slaby on 13 May 2010 04:20
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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |