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 |
If your database was under a lot of strain, what are the first few things you might consider to speed it up?
Do you know what is priority inversion?
Explain the difference between risc and cisc processor?
Explain me can we use printf inside isr?
What is the function of simple thread poll in embedded system?
Give an example of troubleshooting on embedded targets. Explain the process step-by-step.
what is plc system
What are the different types of buses used by the embedded systems?
Tell me what is difference between binary semaphore and mutex?
Why is the single responsibility principle important?
look at following code void foo(void) { unsigned int a = 6; int b = -20; int c = (a+b > 6) ? 1:0; } o/p is 1 why explain promotion rules
What is the repository pattern? The factory pattern? Why are patterns important?