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 |
List out various uses of timers in embedded system?
What is difference between using a macro and a in line function?
Design a circuit for A + abs(B) = C, where A and B are 4 bits wide and 2?s complement representation
How do malloc and calloc work?
Explain what is size of character, integer, integer pointer, character pointer?
What happens when recursion functions are declared inline?
What are the rules followed by mutexes?
What is inversion of control?
Tell me can structures be passed to the functions by value?
Which is better a char, short or int type for optimization?
What type of software simulator and developer have you used?
what is the command/instruction in ARM that does not do anything or does not execute any instruction ? (except NOP instruction)