Hi... Trying my best to answer.... On Thu, May 14, 2009 at 6:51 PM, Kalpesh Rathod <kalpeshrathod@xxxxxxxxx> wrote: > Hi, > > I want to implement bottom half handler for my driver. As per my > design it can sleep, so I have two choices: > > 1. separate kernel thread and managing its sleep-wakeup with waitqueue pros: your bottom half could be executed right away without awaiting other works get done cons: your processor is now handling one more task...so more context switching happens > 2. Use single threaded workqueue pros: simpler...just use predefined workqueue function to manage your job cons: your work must wait for others which are submitted first to be completed. CMIIW guys... regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ