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 is api in servlet?
Explain web application directory arrangement?
Difference between get and post in java servlets?
How servlets are deployed in java?
Is servlet a framework?
What are the drawbacks of cgi?
What are the different session tracking techniques?
What is the difference between jsp and servlet life cycle?
How can you run a servlet program?
Why is httpservlet declared abstract?
What is servlet and its life cycle?
Can you refresh servlet in client and server-side automatically?
What are the phases of servlet life cycle?
What is the difference between forward () and sendredirect () functions in servlet? Explain
What is the use of httpservletresponsewrapper?