先决条件 – 操作系统类型
1. 批处理:
在批处理系统中无需任何人工干预即可执行一系列作业。在这组具有相似需求的作业中,被批处理在一起,输入到计算机中执行。它也称为简单批处理系统。它的处理速度比多道程序设计系统慢。
批处理的优点:
- 它可以轻松管理大量重复工作。
- 在批处理系统中输入数据不需要特殊的硬件和系统支持。
- 它可以由多个用户共享。
- 批处理系统的空闲时间非常少。
- 使我们能够有效地管理大量工作负载。
批处理的缺点:
- 它有更多的周转时间。
- 非线性行为。
- 不可逆转的行为。
- 由于任何错误,可能会发生任何工作都可以无限循环。
- 有时证明是昂贵的。
2. 多道程序:
多道程序操作系统允许通过监视进程状态并在进程之间切换来执行多个进程。它执行多个程序以避免 CPU 和内存未充分利用。它也被称为多程序任务系统。它的处理速度比批处理系统快。
多道程序的优点:
- CPU 永远不会空闲
- 高效的资源利用
- 响应时间更短
- 短期工作比长期工作完成得更快
- 增加吞吐量
多道程序的缺点:
- 长时间的工作必须等待很长时间
- 跟踪所有流程有时很困难
- 需要CPU调度
- 需要高效的内存管理
- 程序执行期间无法进行用户交互
批处理操作系统和多道程序操作系统的区别:
S.No. | BATCH PROCESSING | MULTIPROGRAMMING |
---|---|---|
01. | Batch processing System is also called as Simple Batch System. | Multiprogramming System is also called as Multiprogram Task System. |
02. | A series of jobs are executed without any human intervention in Batch processing system. In this set of jobs with similar needs are batched together and inputted to the computer for execution. | Multiprogramming operating system allows to execute multiple processes by monitoring their process states and switching in between processes. It executes multiple programs to avoid CPU and memory underutilization. |
03. | Batch processing system is slower in processing than Multiprogramming system. | Multiprogramming System is faster in processing than Batch Processing system. |
04. | In Batch processing system CPU needs to stand idly. | In Multiprogramming system CPU needs not stand idly. |
05. | In this the processes have to wait in a queue. | In this the process has to wait in a queue. |
06. | In batch processing Operating System execution of process starts batch wise. | In multi-programming Operating System execution of process starts as it centers the processor. |
07. | In batch processing grouping of several processing jobs to be executed one after another by a computer without any user interaction. | Multi-programming operating system ability of an OS to execute multiple programs at the same time on a single processor. |
08. | In Batch processing system the CPU utilization is less. | In multiprogramming system the CPU utilization is more. |