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
What is the repository pattern? Why are patterns important?
Can structures be passed to the functions by value?
Explain the significance of watchdog timer in embedded systems?
What is the need for an infinite loop in embedded systems?
Explain what is the need for an infinite loop in embedded systems?
Why is it better to use multi-threading polling instead of a single threading model?
What is the use of having the const qualifier?
Tell me how to create a child process in linux?
What is size of character, integer, integer pointer, character pointer?
Explain what are the differences between analytical and computational modeling?
what is a pure function in arm terminology?
Describe a software development life cycle that you've managed.
What is so great about
Discuss the differences between mocks and stubs/fakes and where you might use them (answers aren't that important here, just the discussion that would ensue).
Tell me what is rtos?