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

What is the repository pattern? Why are patterns important?

870


Can structures be passed to the functions by value?

838


Explain the significance of watchdog timer in embedded systems?

893


What is the need for an infinite loop in embedded systems?

837


Explain what is the need for an infinite loop in embedded systems?

870


Why is it better to use multi-threading polling instead of a single threading model?

1027


What is the use of having the const qualifier?

763


Tell me how to create a child process in linux?

742


What is size of character, integer, integer pointer, character pointer?

778


Explain what are the differences between analytical and computational modeling?

874


what is a pure function in arm terminology?

1012


Describe a software development life cycle that you've managed.

817


What is so great about ?

753


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).

849


Tell me what is rtos?

810