Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

home / study / questions and answers / engineering / computer science / a proces

ID: 3666575 • Letter: H

Question

home / study / questions and answers / engineering / computer science / a process can be blocked by busy waiting or by ...

Your question has been answered! Rate it below.

Let us know if you got a helpful answer.

Question

A process can be blocked by Busy Waiting or by moving the process into the Blocked state. Compare these two possibilities considering two different environments:

A multiprogramming environment

A multiprocessing environment

What will be your first choice of blocking the process in each of these environments and why?.

Explanation / Answer

MULTI-PROGRAMMING:

Multiprogramming is a rudimentary form of parallel processing in which several programs are run at the same time on a uniprocessor. Since there is only one processor, there can be no true simultaneous execution of different programs. Instead, the operating system executes part of one program, then part of another, and so on. To the user it appears that all programs are executing at the same time.

MULTI-PROCESSING:

Multiprocessing sometimes refers to executing multiple processes (programs) at the same time. This might be misleading because we have already introduced the term “multiprogramming” to describe that before.
In fact, multiprocessing refers to the hardware (i.e., the CPU units) rather than the software (i.e., running processes). If the underlying hardware provides more than one processor then that is multiprocessing. Several variations on the basic scheme exist, e.g., multiple cores on one die or multiple dies in one package or multiple packages in one system.

There for the first choice of blocking the process in each of these environments depend on the priority of the program.In multi-programming the OS may interrupt that process and give the control to one of the other in-main-memory programs that are ready to execute.

whereas in multi processing the programs are stored in main memory and the choice of blocking depends on the time sharing system and the run time etc.