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 the difference between "set" logic, and "procedural" logic.
You have two computers, and you want to get data from one to the other. How could you do it?
Do you know what is priority inversion?
Tell me about 3 times you failed.
Name three primary attributes of object-oriented design. Describe what they mean and why they're important.
Explain what are the essential components of embedded system?
What are the differences between stateless and stateful systems, and impacts of state on parallelism.
What are the different types of buses used by the embedded systems?
Tell me what is isr?
Can we use printf inside isr?
Tell me what is the need for dmac in es?
Explain how does combination of functions reduce memory requirements in embedded systems?
What are recursive functions? Can we make them in line?
What is the use of volatile keyword?
Describe a time when you collaborated with designers and engineers to deploy a new product. What was your role?