📜  批处理操作系统和多程序操作系统之间的区别

📅  最后修改于: 2021-08-25 10:39:16             🧑  作者: Mango

先决条件–操作系统类型

1.批处理:
在批处理系统中无需人工干预即可执行一系列作业。在这组具有相似需求的作业中,将它们分批处理并输入到计算机中以供执行。它也称为简单批处理系统。它比Multiprogramming系统处理速度慢。

批处理的优点:

  • 它可以轻松管理大量重复工作。
  • 在批处理系统中输入数据不需要特殊的硬件和系统支持。
  • 它可以由多个用户共享。
  • 批处理系统的空闲时间非常少。
  • 使我们能够有效地管理大量工作。

批处理的缺点:

  • 它有更多的周转时间。
  • 非线性行为。
  • 不可逆的行为。
  • 由于任何错误,可能发生任何作业都可以进入无限循环的情况。
  • 有时证明是昂贵的。

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.