GATE - 1999 | OS | Which of the following actions is/are typically not performed by the

GATE - 1999 | OS | Which of the following actions is/are typically not performed by the
Posted on 27-02-2022

GATE - 1999 [Operating System]

Questions:

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.

  

Solution:

Option (C) is Correct.

A) True.
B) True.
C) False, because swapping is done when the process is suspended and not during context switching.
D) True, Invalidation of TLB is necessary because, if the TLB is not invalidated then the new process might end up using the translation of old process. Note that Invalidation of TLB is necessary but saving and reuse of TLB is not necessary.

 

Thank You

Download App for Free PDF Download

GovtVacancy.Net Android App: Download

government vacancy govt job sarkari naukri android application google play store https://play.google.com/store/apps/details?id=xyz.appmaker.juptmh