What is context switching?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between the get and post method

783


Why do you use session tracking in httpservlet?

832


How do you define a servlet?

717


How many servlet objects are created?

769


Why do we need a constructor in a servlet if we use the init method?

735


When to use doget() and when dopost()?

816


What is servlet interface?

936


List out the difference between ServletConfig and ServletContext?

777


Define context initialization parameters.

779


What is the purpose of requestdispatcher interface?

809


Can we refresh servlet in client and server side automatically?

780


Difference between doget and dopost?

901


What is the difference between a generic servlet and http servlet?

709


What is the use of servlet context?

740


Explain the difference between servlet and cgi?

805