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

What is context switching?

Answer Posted / santosh

The scheduler maintains a queue of executable threads for each priority level. These are known as ready threads. When a processor becomes available, the system performs a context switch. The steps in a context switch are:
Save the context of the thread that just finished executing.
Place the thread that just finished executing at the end of the queue for its priority.
Find the highest priority queue that contains ready threads.
Remove the thread at the head of the queue, load its context, and execute it.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sessions in servlets?

1063


What is the difference between Server and Container?

1251


What is servlet and its types?

1053


What is meant by servlet? What are the parameters of the service method?

1031


What is the use of java servlet api?

1033


What do you mean by request dispatcher in servlet? Also explain its methods.

1146


How to get the current httpsession object?

1116


How do we translate jsp?

1051


How we can call a jsp from the servlet?

1006


What's the servlet interface?

1078


How can you run a servlet program?

1081


How can you create a session in servlet?

1141


Which interface should be implemented by all servlets?

1216


What is the difference between Servlets and Applets?

1037


What methods do you use in servlet - applet communication?

1041