Is tasklets or workqueues or softirqs are scheduled by the
scheduler?
Answers were Sorted based on User's Feedback
Answer / 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 |
Tell me how does input/output bus functions?
What is inversion of control?
How are local and global variables are allocated by compiler.
What is endianness of a system and how do different systems communicate with each other?
Why would you choose java in embedded systems?
Explain some of the commonly found errors in embedded systems?
what is a pure function in arm terminology?
What is yagni? Is this list of questions an example?
Tell me what is the function of dma controlled in embedded system?
Describe a time when you collaborated with designers and engineers to deploy a new product. What was your role?
Why are interfaces important?
Explain the concept of separation of concerns and it's pros and cons.