Workqueue vs tasklet - Linux

This is a discussion on Workqueue vs tasklet - Linux ; And the following is a summary by Ingo on work queue concept: ------------------------------------------------------------------------------------------ http://www.cs.helsinki.fi/linux/linu...2-39/0176.html i'd like to introduce the following interfaces: - create_work_queue(wq, handler_fn) - destroy_work_queue(wq) - queue_work(wq, work_fn, work_data) - flush_work_queue(wq) this is an extension of the keventd concept. ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Workqueue vs tasklet

  1. Workqueue vs tasklet

    And the following is a summary by Ingo on work queue concept:

    ------------------------------------------------------------------------------------------
    http://www.cs.helsinki.fi/linux/linu...2-39/0176.html

    i'd like to introduce the following interfaces:

    - create_work_queue(wq, handler_fn)

    - destroy_work_queue(wq)

    - queue_work(wq, work_fn, work_data)

    - flush_work_queue(wq)

    this is an extension of the keventd concept. A work queue is a
    simplified
    interface to create a kernel thread that gets work queued from IRQ and
    process contexts. No more, no less.

    ------------------------------------------------------------------------------------------

    So my question what are the differences betwen keventd and tasklet?

    And similarly keventd and workqueue? (since Ingo made this extension
    remark)?

    If workqueue (as defined above) is getting "work" (and not sure what
    that "work" means) queued from IRQ, so it means that tasklet are
    handling stuff that CANNOT be queued, right? (ie, synchronous vs
    asynchronous, am I correct?)

    Can work queue be assigned to different processor, or it is
    automatically balanced (ie, different CPU will pull work from the work
    queue for execution?)

    Thanks for the sharing....CONFUSED...:-).

  2. Re: Workqueue vs tasklet

    Peter Teoh wrote in
    news:a82e41de-b241-4157-a954-4c57ef5cbe2f@y18g2000pre.googlegroups.com:

    > So my question what are the differences betwen keventd and tasklet?
    >
    > And similarly keventd and workqueue? (since Ingo made this extension
    > remark)?


    See this excellent overview:
    http://www.linuxjournal.com/article/6916

    GH

+ Reply to Thread