In: Computer Science
Describe how Multiprogramming is achieved in an OS through time sharing and time slicing.
Multi programming means to run or execute more than one program at a time in the computer system. In multi programming the CPU of the system executes the programs till all the programs are executed completely. With the help of multi programming the time will be saved.Time sharing operating system means many users can operate or execute at a same time. Every user is able to perform their task without any restrictions.
In this our aim is to achieve maximum CPU ( and other System resources) utilization with SINGLE PROCESSOR (i.e. Single CPU). If we are running a SINGLE Program on a SINGLE processor , then we can’t achieve maximum CPU utilization because chances are that the Program might wait for some Input/Output operations to complete, till then CPU will remain Idle. Hence we run multiple program on SINGLE processor, so that whenever a particular program waits for some I/O or any other operations, then CPU would NOT sit idle and SWITCH to some other program to execute.