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
Tell me how does the interrupts handle by using the threads?
How does the interrupts handle by using the threads?
What is the volatile keyword used for?
What are the characteristics of embedded system?
What is kernel paging?
Which is the best way to write loops?
What is null pointer and what is its use?
What are the different types of customizations that is used with the “volatile” keyword?
Explain the differences between analytical and computational modeling?
How does a 3 tier application differ from a 2 tier one?
Explain various uses of timers in embedded system?
How i/o devices are classified for embedded system?
Explain what are the uses of the keyword static?
Explain interrupt latency and how can we decrease it?
Please explain what is semaphore?