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
What are sessions in servlets?
What is the difference between Server and Container?
What is servlet and its types?
What is meant by servlet? What are the parameters of the service method?
What is the use of java servlet api?
What do you mean by request dispatcher in servlet? Also explain its methods.
How to get the current httpsession object?
How do we translate jsp?
How we can call a jsp from the servlet?
What's the servlet interface?
How can you run a servlet program?
How can you create a session in servlet?
Which interface should be implemented by all servlets?
What is the difference between Servlets and Applets?
What methods do you use in servlet - applet communication?