Anonymous user menu

Gate1999_2.12

 Which of the following actions is/are typically not performed by the operating system when switching context from process A to process B?
(a) Saving current register values and restoring saved register values for process B.
(b) Changing address translation tables.
(c) Swapping out the memory image of process A to the disk.
(d) Invalidating the translation look-aside buffer

Answer

Discuss

1Comment
Amit Pal @amitpal101
26 Sep 2016 12:26 pm

Ans (c) .
Operating system is not always swap out the image of process to the disk . beacause it may be the case that after process B it continues to run process A again . so if OS swap out the image of process A to the disk than that will be huge overhead for the OS to bring back that process to RAM . So OS tries to avoid it .