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

What is protection boundary?

0 Answers  


Explain the different kinds of threads?

0 Answers  


List the system calls used for process management?

0 Answers  


Explain what is protection boundary?

0 Answers  


What is Critical section?

13 Answers   TCS,






When should we use thread-safe "_r" library calls?

2 Answers  


Explain similarities between thread and process?

0 Answers  


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

0 Answers  


What are threads?

4 Answers  


What are the different kinds of threads?

3 Answers   Ericsson, Fashion Technology,


what are the Architectural differences between User-space threads, and Kernel-supported threads.

1 Answers  


Explain what are the main families of threads?

0 Answers  


Categories