linux批处理操作系统_批处理操作系统

linux批处理操作系统

批处理操作系统 (Batch Processing Operating System)

When we are working in an environment there is a restriction of making use of computer resources effectively and improvement in the programmer's output. When we are working with tapes a large amount of CPU time wasted in mounting tapes or when the user was operating the input/output device then also a large amount of CPU time wasted CPU was sitting without any work to perform.

在环境中工作时,存在有效利用计算机资源和提高程序员输出的限制。 当我们使用磁带时,在安装磁带上浪费了大量的CPU时间,或者当用户操作输入/输出设备时,浪费的CPU时间也很多,而CPU却没有任何工作要做。

In the batch system, firstly user prepares his job by using punch cards and then, he submits the job to the computer operator.

批处理系统中 ,首先用户使用打Kong卡准备工作,然后将工作提交给计算机操作员。

The operator collects the jobs from different users and jobs with similar requirements were batched together and run through the computer as a group.

操作员从不同的用户那里收集作业,并且将具有类似要求的作业一起批处理并作为一个整体在计算机中运行。

Batch processing system


Batch Processing Operating System

批处理操作系统

For example, suppose the operator received one 'C' Program one COBOL program and another 'C' program. If these programs can be run in that order, he would have to set up for the 'C' program environment (loading the 'C' compiler tapes) then set up the COBOL program and finally 'C' program again. If he runs two 'C' as a batch, however, he could set up only once for 'C'. Thus it saves the operator's time.

例如,假设操作员收到一个“ C”程序一个COBOL程序和另一个“ C”程序。 如果可以按此顺序运行这些程序,则他将必须设置为“ C”程序环境(装入“ C”编译器磁带),然后设置COBOL程序,最后再次设置“ C”程序。 但是,如果他批量运行两个“ C”,则只能为“ C”设置一次。 这样可以节省操作员的时间。

  • Jobs in a batch are processed in the order of submission.

    一批作业按提交顺序进行处理。

  • Batching similar jobs helps in the utilization of system resources quite a bit. But there were still problems. During this transaction from one job to the next, the CPU sat idle.

    批处理相似的作业可以极大地帮助利用系统资源。 但是仍然有问题。 在从一个作业到下一个作业的事务期间,CPU处于空闲状态。

  • To overcome this idle time, a small program called resident monitor was created which is always resident in the memory. It automatically sequenced from one job to another job.

    为了克服这种空闲时间,创建了一个名为“驻留监视器”的小程序,该程序始终驻留在内存中。 它自动从一个作业到另一个作业进行排序。

批处理系统的优点 (Advantages of batch processing system)

  • It is very difficult to know the time needed by any job for completion of its execution but the processors of the batch systems know how long the job would be when it is in the queue.

    很难知道任何作业完成其执行所需要的时间,但是批处理系统的处理器知道该作业在队列中要花多长时间。

  • A new job gets started as soon as the previous job is finished without any manual intervention; this increases the performance of the system.

    先前的工作完成后,无需任何人工干预即可立即开始新的工作; 这可以提高系统的性能。

  • The idle time for the batch system is very less and multiple users can share the batch systems.

    批处理系统的空闲时间非常少,多个用户可以共享批处理系统。

  • This makes management easy for large work in batch systems.

    这使得批处理系统中的大型工作的管理变得容易。

  • A lot of time was being wasted earlier for each individual process in context switching from one environment to another environment but batch processing saves this time also.

    在从一个环境切换到另一个环境的上下文切换中,每个单独的流程都浪费了很多时间,但是批处理也节省了时间。

批处理系统的缺点 (Drawbacks of batch processing system)

  1. CPU may remain idle for a long time in the batch system. If the processes of a batch need some I/O operation, at that time CPU must wait till the I/O operation gets completed. Insufficient use of CPU because of speed mismatch between fast CPU and slow devices and CPU cannot take any other job and execute it.

    在批处理系统中,CPU可能长时间保持空闲状态。 如果批处理需要一些I / O操作,则此时CPU必须等待I / O操作完成。 由于快速CPU和慢速设备之间的速度不匹配,导致CPU使用不足,并且CPU无法执行任何其他作业。

  2. Priority cannot be implemented for the jobs because all the jobs of a batch are executed sequentially one after the other so the output is obtained only after all the jobs are executed. After the submission of the job, the user has to wait a long time to obtain the result.

    不能为作业实现优先级,因为一批中的所有作业一个接一个地依次执行,因此仅在执行所有作业后才能获得输出。 提交作业后,用户必须等待很长时间才能获得结果。

  3. There is a lack of interaction between a user and his job. Once a batch of jobs is submitted for execution, the user is not able to interact with any of his jobs. If a job requires the user to input data during run time, then the user must wait till the other jobs of the batch get executed and if an error occurs while the program is in execution, it can be found only after the completion of all jobs. Due to this increases the overall execution time.

    用户与其工作之间缺乏交互。 提交一批作业以供执行后,用户将无法与其任何作业进行交互。 如果作业需要用户在运行时输入数据,则用户必须等待直到批处理中的其他作业被执行,并且如果在程序执行时发生错误,则只有在所有作业完成后才能找到该错误。 。 因此,增加了整体执行时间。

  4. It may lead to starvation because a particular batch of jobs might take a long time for their execution of other jobs in other batches have to wait for a long time to execute.

    这可能会导致饥饿,因为特定批次的作业可能需要很长时间才能执行其他批次中的其他作业,因此必须等待很长时间才能执行。

References:

参考文献:

  • What is Batch Processing Operating System?

    什么是批处理操作系统?

  • Batch Operating System | Types of Operating System

    批处理操作系统| 操作系统类型

翻译自: https://www.includehelp.com/operating-systems/batch-processing-operating-system.aspx

linux批处理操作系统

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/378400.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

STL容器及其简单应用(stack、priority_queue、vector、deuqe、list、map/multimap、set/multiset)

目录前言【1】stack操作以及应用stack的几个核心接口利用stack完成进制转换【2】priority_queue操作以及应用priority_queue的几个核心接口利用priority_queue完成合并果子问题【3】vector操作以及应用vector的几个核心接口利用vector完成随机排序【4】deuqe(双向队列)操作以及…

Android SAX API: XmlResourceParser及其扩展应用

XmlResourceParser继承了2个接口:AttributeSet和XmlPullParser。其中XmlPullParser定义了Android SAX框架。跟Java 的SAX API相比,XmlPullParser令人难以置信地简单。 一、使用XmlResourceParser读取资源束中的xml 资源束是应用程序编译后的应用程序包…

linux fdisk 磁盘空间使用率,linux查看磁盘剩余空间以及cpu使用情况

1、查看CPU个数cat /proc/cpuinfo | grep "physical id" | uniqtop可以实时的查看cpu的使用情况2、查看CPU核数cat /proc/cpuinfo | grep "cpu cores" | uniq3、查看CPU型号cat /proc/cpuinfo | grep model name |uniq4、查看内存cat /proc/meminfo | grep…

c语言 函数的参数传递示例_restder()函数,带有C ++中的示例

c语言 函数的参数传递示例C restder()函数 (C remainder() function) remainder() function is a library function of cmath header, it is used to calculate the remainder (IEC 60559), it accepts two parameters (numerator and denominator) and returns the remainder…

jquery validation-jquery的验证框架 详解(1)

jquery validation验证框架是一款非常优秀的客户端数据验证框架。我们在日常的项目中都会应用得到。今天开始我们会分两到三个个阶段 详细的了解这款插件 至于这款插件是多么的优秀,怎么个描述法 我这里就不详细述说。大家可以在接下来的时间里接触并且感觉它的强大…

已知一个掺杂了多个数字字符的中文名拼音,去掉所有数字字符之后,形式为“名”+空格+“姓”;并且名和姓的首字母大写,其他小写,要求输出姓名全拼,且全为小写。(后附详细样例说明)

已知一个掺杂了多个数字字符的中文名拼音,去掉所有数字字符之后,形式为“名”空格“姓”;并且名和姓的首字母大写,其他小写,要求输出姓名全拼,且全为小写。(后附详细样例说明) 【输入…

【视觉项目】【day2】8.21号实验记录(手机固定高度15cm拍摄+直方图均衡化+模板匹配,模板12个,测试28个,效果十分差)

目录均衡化代码模板图片按照大小排序总代码测试效果新思路由于模板匹配是像素之间的比对,所以不同光照下的像素灰度值也会不同 所以在比对之前,我们需要对测试图和模板图进行直方图均衡化,这一步可以先实现。 今天将采用批量处理的方式&#…

c语言 函数的参数传递示例_isgreater()函数以及C ++中的示例

c语言 函数的参数传递示例C isgreater()函数 (C isgreater() function) isgreater() function is a library function of cmath header, it is used to check whether the given first value is greater than the second value. It accepts two values (float, double or long…

在一个风景秀丽的小镇,一天早上,有N名晨跑爱好者(编号1~N)沿着优雅的江边景观道朝同一方向进行晨跑

【问题描述】 在一个风景秀丽的小镇,一天早上,有N名晨跑爱好者(编号1~N)沿着优雅的江边景观道朝同一方向进行晨跑,第i名跑者从位置si处起跑,且其速度为Vi。换句话说,对所有的实数t≥0,在时刻t时第i名跑者的…

linux内核测试,Linux内核测试的生命周期

内核持续集成(CKI)项目旨在防止错误进入 Linux 内核。在 Linux 内核的持续集成测试 一文中,我介绍了 内核持续集成Continuous Kernel Integration(CKI)项目及其使命:改变内核开发人员和维护人员的工作方式。本文深入探讨了该项目的某些技术方面&#xff…

Linux下动态库使用小结

1. 静态库和动态库的基本概念 静态库,是在可执行程序连接时就已经加入到执行码中,在物理上成为执行程序的一部分;使用静态库编译的程序运行时无需该库文件支持,哪里都可以用,但是生成的可执行文件较大。动态库&#xf…

【视觉项目】【day3】8.22号实验记录(利用canny检测之后的来进行模板匹配)

【day3】8.22号实验记录(几乎没干正事的一天,利用canny检测之后的来进行模板匹配) 今天没搞代码,主要是问研究生学长工业摄像头的接法的,学长也不知道,明天问问老师。。。 晚上搞了一下canny之后的模板匹配…

scala字符替换_如何替换Scala中的“坏”字符?

scala字符替换In Scala, programming language, all sorts of special characters are valid. The character set library is quite good and supports almost all characters in Scala programming. 在编程语言Scala中,各种特殊字符均有效。 字符集库非常好&#x…

linux dd 大文件下载,Linux dd+grep 大文件二分查找

Linux dd 命令用于读取、转换并输出数据。dd 可从标准输入或文件中读取数据,根据指定的格式来转换数据,再输出到文件、设备或标准输出。参数说明(dd --help)Usage: dd [OPERAND]...or: dd OPTIONCopy a file, converting and formatting according to th…

【视觉项目】【day1】8.20号实验记录(初步使用模板匹配)

目录【day1】8.20号实验记录(初步使用模板匹配)模板匹配单张图的代码利用多个模板去匹配多张图的代码写代码过程中遇到的问题【day1】8.20号实验记录(初步使用模板匹配) 模板匹配 利用模板匹配可以框定出瓶子,但是却…

第四章 纤维结构对染色性能的影响单元测验

1,利用红外光谱技术可以测定纤维的() 化学结构。 2,纤维完整的结构包括() 化学结构。 表面形态结构。 内部超分子结构。 3,纤维化学结构由于影响了纤维(),进而影响其染色性能 吸湿溶胀性能。 在染液中电离性能。 在染浴中的带电性。 与染液中各组分之间的作用力。 …

创建存储过程时出现的This function has none of DETERMINISTIC, NO SQL解决办法

This function has none of DETERMINISTIC, NO SQL解决办法创建存储过程时 出错信息: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the …

如何让没有安装网页中所需字体的用户也能得到一致的浏览效果【转】

今天给大家谈一个关于字体的话题,我们在做项目的过程中会遇到一些在psd中的字体在自己的电脑中没有安装,或者是一些特殊的文字,通常的做法是把它切成图片,但是如果这个站是多个语言的,那我们是不是把每个语言的都切一张图片呢&…

【视觉项目】【day4】8.24号实验记录(消除瓶子内部“边缘”)

思路分析以及代码 思路1:使用findContours函数,设置轮廓为最外部RETR_EXTERNAL,结果发现结果仍然是所有轮廓。 思路2:先二值化,然后进行闭操作,然后canny,得到的轮廓确实比之前少很多&#xff…

operator.ne_Python operator.ne()函数与示例

operator.neoperator.ne()函数 (operator.ne() Function) operator.ne() function is a library function of operator module, it is used to perform "not equal to operation" on two values and returns True if the first value is not equal to the second val…