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
How to get the IP address of client in servlet?
Write a command to get actual path of a servlet to the server?
What are the annotations used in servlet 3?
How do you invoke a servelt?
What are the disadvantages of storing session state in cookies?
What is the use of request dispatcher interface?
Explain how to improve Servlet Performance?
What are the objects involved when a servlet receives a call from client?
What are its drawbacks of cgi?
What do you mean by scope object and what are its types?
Write a program to show the functionality of servlets.
What are all the protocols supported by httpservlet?
Explain the role of dispatcherservlet and contextloaderlistener.
What is the default http method in the servlet?
What is the type of method for sending request from http server?