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

Explain the difference between "set" logic, and "procedural" logic.

819


You have two computers, and you want to get data from one to the other. How could you do it?

772


Do you know what is priority inversion?

800


Tell me about 3 times you failed.

941


Name three primary attributes of object-oriented design. Describe what they mean and why they're important.

752


Explain what are the essential components of embedded system?

754


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

824


What are the different types of buses used by the embedded systems?

861


Tell me what is isr?

822


Can we use printf inside isr?

801


Tell me what is the need for dmac in es?

771


Explain how does combination of functions reduce memory requirements in embedded systems?

857


What are recursive functions? Can we make them in line?

777


What is the use of volatile keyword?

831


Describe a time when you collaborated with designers and engineers to deploy a new product. What was your role?

767