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.pswp.cn/news/378400.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/378400.shtml
英文地址,請注明出處:http://en.pswp.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…