what is Context switch?
Answers were Sorted based on User's Feedback
Answer / kannan
context switch is nothing but change the one process to
another process during the scheduling time
Is This Answer Correct ? | 29 Yes | 4 No |
Answer / al hinai
A context switch is the computing process of saving and
restoring the state (context) of a CPU such that multiple
processes can share a single CPU resource. The context
switch is an essential feature of a multitasking operating
system.
Context switches are usually time consuming and much of the
design of operating systems is to minimize the time of
context switches.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / guest
A context switch is the action of switching a CPU between
executing one thread and another (or transferring control
between them). This may involve crossing one or more
protection boundary.
Is This Answer Correct ? | 19 Yes | 14 No |
Answer / ragheed
When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch.
Context of a process represented in the PCB
Context-switch time is overhead; the system does no useful work while switching The more complex the OS and the PCB -> longer the context switch
Time dependent on hardware support Some hardware provides multiple sets of registers per CPU -> multiple contexts loaded at once
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / mukesh
Context switching is the process that transfer control of cpu running process to other process which is resides in ready state. It is generally used when io operation complete process come back again through ready to running state.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / neelu kaul
a context is the contents of a CPU 's registers and
program counter at any point in time
Is This Answer Correct ? | 1 Yes | 8 No |
Explain the performance differences between user-space threads and kernel-supported threads.?
How to work unix commands on windows xp without installing unix o/s in pc?
What is Critical section?
Explain similarities between thread and process?
What are threads?
how to edit the network interface device type in container(zone) in solaris 10?
what is Scheduling?
Explain the architectural differences between user-space threads, and kernel-supported threads?
What is the window of the working set of a process?
If your server is running on Unix and one of the sessions are keep on running without loading any data. how would you kill it?
Explain how to work unix commands on windows xp without installing unix o/s in pc?
What is the working set of a process?