what is Context switch?

Answers were Sorted based on User's Feedback



what is Context switch? ..

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

what is Context switch? ..

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

what is Context switch? ..

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

what is Context switch? ..

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

what is Context switch? ..

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

what is Context switch? ..

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

Post New Answer

More Unix Threads Interview Questions

Explain the performance differences between user-space threads and kernel-supported threads.?

0 Answers  


How to work unix commands on windows xp without installing unix o/s in pc?

0 Answers  


What is Critical section?

13 Answers   TCS,


Explain similarities between thread and process?

0 Answers  


What are threads?

4 Answers  






how to edit the network interface device type in container(zone) in solaris 10?

2 Answers   TCS,


what is Scheduling?

3 Answers   Hexaware,


Explain the architectural differences between user-space threads, and kernel-supported threads?

0 Answers  


What is the window of the working set of a process?

0 Answers  


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?

0 Answers  


Explain how to work unix commands on windows xp without installing unix o/s in pc?

0 Answers  


What is the working set of a process?

0 Answers  


Categories