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 is the main function of multiplexed address/data bus?
Explain me what is kernel paging?
What is an embedded system and why it is used?
What's yagni? Is this list of questions an example?
Tell me what are the different storage classes in c?
Please explain the difference between mutexes vs semaphores?
Tell me why is it better to use multi-threading polling then single threading model?
Discuss the differences between mocks and stubs/fakes and where you might use them (answers aren't that important here, just the discussion that would ensue).
Tell me why cannot arrays be passed by values to functions?
Design a circuit for A + abs(B) = C, where A and B are 4 bits wide and 2?s complement representation
Explain scope of static variables?
what is meant by a forward reference in c?