Showing posts with label multi-programmed batched system. Show all posts
Showing posts with label multi-programmed batched system. Show all posts

2 differences between time sharing and multi-programmed batched systems?

Q. What are time sharing and multi-programmed batched systems? What are the differences between time sharing and multi-programmed batched systems?

Time-Sharing Systems:

Time sharing operating systems are extension of multi-programmed batched operating system and the extension is that here the user can interact with the program running. The CPU scheduling algorithm and allocate small amount time to each job at once and then move on to the next job. Thus the user can get output from the program and can input another command and wait for the output. Keyboard is used to input command and monitors are for output. A time sharing operating system allows many user to use the same computer at the same time such as every user is using his own computer. This is achieved by frequently switching from one program to another and satisfying users with an output from the program before switching to the next one.

2 Differences between parallel and multi-programmed batched systems

Q. What are parallel and multi-programmed batched systems? What are the differences between parallel and multi-programmed batched systems?

Multi-programmed Batched Systems:

In multi-programmed batched operating systems, the operating system reads jobs from disk drives where a list of jobs are already being stored through card readers. The operating system then pull and store as much job as it can in the memory. Then from the memory, operating system start working on a job. Now, whenever a job reaches a situation where is has to be waiting for one or more tasks to be completed like use of any IO devices, the operating system pulls another job from the memory and starts working on it. Whenever this job also starts waiting, for example it need to use the same IO which is already in use by its previous job, the operating systems pulls another job. This is how, a multi-programmed batched systems harness the power of disk drives and memory.

4 Differences between simple batch and multi-programmed batched operating systems

Q. What are simple batch and multi-programmed batched operating systems? What are differences between simple batch and multi-programmed batched operating systems?

Simple Batch Systems:

Early computers used to take one job at a time, no input in the middle of the process and also no output either. The jobs were prepared commands for the computer to execute on its side and these jobs were generally written on cards, control cards, which the computer used to read through card readers. After processing the job, the computer used to output the data through line-printer machines or tape drives. 

So, the simple batch operating systems were designed to speed up the process by grouping jobs which are similar in nature into one job and execute them and then send back output of each jobs to its programmer. So simple batch systems lack the interaction between the programmer and the machine while it’s running or working on a job.