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
Infinite loops often arise in embedded systems. How does you code an infinite loop in c?
What is endianness of a system and how do different systems communicate with each other?
What could be the reasons for a system to have gone blank and how would you debug it?
What is the size of the int, char and float data types?
What are the differences between stateless and stateful systems, and impacts of state on parallelism.
Explain what are the uses of the keyword static?
Why continuous integration is important?
What is yagni? Is this list of questions an example?
what is embedded system in a computer system?
Tell me can static variables be declared in a header file?
What is the difference between unit test and integration test?
Tell me can structures be passed to the functions by value?
When do you know your code is ready for production?
What is dma in an embedded system?
What is continuous integration? Why is it important?