All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: ratheesh k <ratheesh.ksz@gmail.com>
Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Differnce between kthread and worqueue ?
Date: Thu, 13 May 2010 10:10:59 +0200	[thread overview]
Message-ID: <4BEBB413.9010404@gmail.com> (raw)
In-Reply-To: <AANLkTik5vq9XHP4eCYw2J4eZVf3pwJZGP_9C4T93otAs@mail.gmail.com>

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

  reply	other threads:[~2010-05-13  8:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13  7:25 Differnce between kthread and worqueue ? ratheesh k
2010-05-13  8:10 ` Jiri Slaby [this message]
2010-05-13  8:12   ` Jiri Slaby

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BEBB413.9010404@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=ratheesh.ksz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.