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
Explain web application directory arrangement?
How can we perform any action at the time of deploying the project?
Why do we need servlet filter?
Is that servlet is pure java object or not?
Difference between java beans & servlets?
What is a servlet-to-servlet communcation?
What are the phases of the servlet life cycle?
What is difference between server and servlet?
Which application server is best for java?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the different mode that servlets can be used?
Can we use the constructor, instead of init(), to initialize servlet?
What is httpservlet and how it is different from genericservlet?
Why is http protocol called as a stateless protocol?
What is lazy loading and what is Generic Servlet Class?