In other words, only one program is executed at a time within a single address space.
This type of execution practically does not exist anymore because it has been replaced by multiprogramming.
Monoprogramming vs.multiprogramming
In the monoprogramming, the memory only contains one program at any time, while in the multiprogramming the memory contains more than one user program.
In the case of monoprogramming, when the CPU is running the program and it find an I/O operation (input-output), then the program goes to the I/O devices, during that time the CPU remains idle.Therefore, in the monogramming the CPU is not used effectively, that is, CPU utilization is poor.
However, in the multiprog branch, when a user program contains I/O operations, the CPU changes to the next user program.Therefore, the CPU is busy all the time.A single user cannot keep the CPU busy all the time.Therefore, multiprogramming increases the CPU utilization by organizing jobs (programs), so that the CPU is busy at all times running a user program or another.
In multiprogramming, the system The operating system selects one of the jobs on the job board and sends it to the CPU.When an I/O operation is found in that job, the operating system assigns I/O devices to it and assigns the CPU to the next job in the job pool.
However, in mono programming, the CPU remains idle while I/O is running.
In multiprogramming, most of the time the CPU is busy.
Advantages of multiprogramming
Advantages of multiprogram They are:
-The CPU utilization is high.-Higher work performance.
The work performance is the amount of work done in a given time interval:
Work performance=Amount of time the CPU is used/Total time to run the program.
Sources:-Difference between mono programming and multiprogramming-Wiktionary-Multiprogramming
Comments
Post a Comment