What is context switching?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Answer / nitin
context switching is transfer one process to another process
| Is This Answer Correct ? | 0 Yes | 0 No |
What methods do you use in servlet - applet communication?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Can a servlet be called by passing its name as a parameter in the URL?
What is cgi?
What is the use of request dispatcher interface?
How variables can be accessed across the sessions?
How do we go with database connection and log4j integration in servlet?
What are cookies and how will you use them?
How do you create a cookie using servlet?
What are the types of Session Tracking ?
Can we fetch the attributes related to a servlet on a different servlet?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?