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 differences between stateless and stateful systems, and impacts of state on parallelism.
Advantages and disadvantages of using macro and inline functions?
What kinds of problems can you hit with lockless model?
Are you familiar with design patterns? What design software have you used and in what situations?
What buses are used for communication in embedded system?
What is digital signal controller ?
Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
What is a 'volatile' variable?
What is isr? Can they be passed any parameter and can they return a value?
What is the repository pattern? Why are patterns important?
Why do we need virtual device drivers when we have physical device drivers?
What is an anti-aliasing filter?
How do malloc and calloc work?
How does the interrupt architecture works?
Why are patterns important?