What is context switching?

Answers were Sorted based on User's Feedback



What is context switching?..

Answer / azannah

Based on the context ("Categories >> Software >> Java-
Related >> Java-J2EE >> Servlets"), "context switching"
occurs when a processor (or core in a multi-core processor)
stops executing one thread to start executing another.
Since a context switch is not a free process, too many
context switches/sec can reduce the overall ability of the
processor to do real work.

Is This Answer Correct ?    20 Yes 1 No

What is context switching?..

Answer / 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

What is context switching?..

Answer / satendra

Context switching is actually light weight thread context
switches which servlet used to do in multithreading
environment to improve its performance.
servlets do not require creation of a new process for each
request. In most environments, many servlets run in parallel
within the same process as the server.

Is This Answer Correct ?    11 Yes 4 No

What is context switching?..

Answer / venkat

Im not sure...
Context swithing means To switch from One application to
another application....
We can do this by using request.sendRedirect()

Is This Answer Correct ?    13 Yes 13 No

What is context switching?..

Answer / azmeer hossin

Context Switching is the process by which threads sleep and run. It occurs when a thread stops and another runs.

sorry if i was confusing....

Is This Answer Correct ?    0 Yes 0 No

What is context switching?..

Answer / nitin

context switching is transfer one process to another process

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Servlets Interview Questions

when will cookie information destroy?

7 Answers  


Name the webserver that is used to run Servlets?

5 Answers  


can we create more than ServletContext and ServletConfig in your application

6 Answers   Patni,


Define context initialization parameters.

0 Answers  


What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?

2 Answers  






java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null while working with struts it displayed pls very ungent

3 Answers   IBM,


What is the difference between JspWriter and PrintWriter

4 Answers   Artech,


Explain the servlet context.

0 Answers  


Describe the phases of servlet lifecycle?

0 Answers  


What are Servlets?

0 Answers  


Which exception is thrown if the servlet is not initialized properly?

0 Answers  


What is the procedure of invoking different servlet in a different application?

0 Answers  


Categories