Question: A process is an instance of a running program, and a program is an executable stored on a persistent storage (e.g., disk). Suppose we want

A process is an instance of a running program, and a program is an executable stored on a persistent storage (e.g., disk). Suppose we want to design an OS so that for any program, there can be only one instance of it running at any given time. If the user attempts to execute the program again while an instance of it is already running, the OS simply tells the user that the program is already running and does nothing. To achieve the above, the OS needs to maintain some additional information. Let's assume such information is maintained inside PCBs. Please explain what information needs to be maintained in PCBs to allow for the above semantics. Only include what is relevant to achieve this goal, and explain why it is relevant.

Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To ensure that for any program there can be only one instance of it running at any given time and that the OS informs the user when they attempt to ex... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!