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 |
What happens when recursion functions are declared inline?
Explain what is embedded system in a computer system?
What are the 4 types of inheritance relationship?
Explain whether we can use semaphore or mutex or spinlock in interrupt context in linux kernel?
Explain what is a watchdog timer?
Tell me about 3 times you failed.
What is inversion of control?
If your database was under a lot of strain, what are the first few things you might consider to speed it up?
DMA deals with which address (physical/virtual addresses) ?
Tell me what are the uses of the keyword volatile?
Would you call yourself a craftsman (craftsperson) and what does that word mean to you?
Explain difference between risc and cisc processor?