Is tasklets or workqueues or softirqs are scheduled by the
scheduler?
Answer Posted / bharat bhushan
I do not think writing answer no is appropriate. Just
justification is needed.
There are three context in linux kernel. Process, Bottom
Half and interrupt. BH as literally is deferred in linux
2.5.??. Read Robert Love, Linux Kernel Development Ch 7.
BH can be one out of these. { Softirqs, Tasklets,
Workqueues}. We can schedule if something/someone goes to
sleep. That is how linux scheduler gets invoked. As you
know{?), interrupt (1st half), Softirq does not go to sleep.
So it is not right to say, we can schedule from Interrupt
Context. New implementation like Workqueues can go to sleep.
So, here we can schedule.
What about tasklets?
Tasklets runs as softirq ( I think SOFTIRQ_TASKLET_HI and
SOFTIRQ_TASKLET_??), so can not sleep.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain me what are the rules followed by mutexes?
Tell me how does the interrupts handle by using the threads?
How do you react to people criticizing your code/documents?
What's risc architecture?
Can we use any function inside isr?
Tell me what is rtos?
What is difference between using a macro and a in line function?
What is the use of volatile keyword?
What is digital signal controller ?
Scope of static variables?
Tell me how to create a child process in linux?
Tell me what is the purpose of using critical sections?
What is the difference between a web server, web farm and web garden? How would your web application need to change for each?
What are the different types of system involved in embedded system?
Why is it better to use multi-threading polling then single threading model?