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 do we translate jsp?
What's the servlet interface?
Why is servlet used?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What is the dispatcher servlet?
How is the get () method different from the post() method?
Differentiate between get and post?
What is api in servlet?
How to get the current httpsession object?
Why is Servlet so popular?
How we can create war file in servlet?
How can we refresh automatically when new data is entered into the database?
How do cookies work in servlets?
Is it good idea to create servlet constructor?
Explain the working of service() method of a servlet.