Skip to content

ISRO Scientist/Engineer CSE 2018Operating Systems › Not yet assigned to a topic

ISRO Scientist/Engineer CSE 2018 PYQ: In multi-programmed systems, it is advantageous if some programs such as editors anf compilers can be shared…

In multi-programmed systems, it is advantageous if some programs such as editors anf compilers can be shared by several users.

Which of the following must be true of multi-programmed systems in order that a single copy of a program can be shared by several users?

  1. The program is a macro
  2. The program is recursive
  3. The program is reentrant
  1. A
    I only
  2. B
    II only
  3. C
    III only
    Correct answer
  4. D
    I, II and III

Answer

(C) III only

Approach

Identify the property a program must have so that a single in-memory copy can be safely executed by multiple users concurrently. A macro is a text-substitution facility and recursion is a self-calling technique; neither is required for sharing. Reentrancy is precisely the property that allows one copy of code to be shared, because each user gets a separate data area and the code itself is not modified during execution.

Reviewed by ISRO IQ Editorial Team.