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?
- The program is a macro
- The program is recursive
- The program is reentrant
- AI only
- BII only
- CIII onlyCorrect answer
- DI, 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.