Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Infinite loops often arise in embedded systems. How does you code an infinite loop in c?

1197


What is endianness of a system and how do different systems communicate with each other?

855


What could be the reasons for a system to have gone blank and how would you debug it?

900


What is the size of the int, char and float data types?

840


What are the differences between stateless and stateful systems, and impacts of state on parallelism.

880


Explain what are the uses of the keyword static?

815


Why continuous integration is important?

790


What is yagni? Is this list of questions an example?

804


what is embedded system in a computer system?

1051


Tell me can static variables be declared in a header file?

854


What is the difference between unit test and integration test?

892


Tell me can structures be passed to the functions by value?

841


When do you know your code is ready for production?

920


What is dma in an embedded system?

937


What is continuous integration? Why is it important?

962