Re: kthread or tasklet in driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On 07:50 Tue 16 Sep     , Himanshu Chauhan wrote:
> Michael Blizek wrote:
>> Do you have to do more than use waitqueues to make a kernel thread sleep
>> properly?
>>   
> You don't. But when you are using workqueues don't have to worry anything 
> else than the function that would be doing the work. Why take unnecessary 
> work?

Workqueues are for fairly short tasks. If you use them for long tasks or expect
a load which is high enough to saturate the cpu, you will block other workqueue
users.
	-Michi

-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux