版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、Operating System Concepts,Chapter 3: Operating-System Structures,System Components Operating System Services System Calls * System Programs System Structure,Operating System Concepts,3.1 System Components,Many modern operating systems support the system components as following. Process Management Ma
2、in Memory Management File Management I/O System Management Secondary Management Networking Protection System Command-Interpreter System,Operating System Concepts,3.1 System Components (1),A process is a program in execution. A process needs certain resources - including CPU time, memory, files, and
3、I/O devices - to accomplish its task. What are the differences between process and program? Operating system is responsible for the following actions in connection with process management. Process creation and deletion. Process suspension and resumption. Providing mechanisms for process synchronizat
4、ion and process communication Providing mechanisms for deadlock handling,-Process Management,Operating System Concepts,3.1 System Components (2),Memory is a large array of words or bytes, each with its own address. It is a repository of quickly accessible data shared by the CPU and I/O devices. Main
5、 memory is generally the only large storage device that the CPU can address and access directly. Main memory is a volatile storage device. It loses its contents in the case of system failure. Operating system is responsible for the following activities in connections with memory management: Keep tra
6、ck of which parts of memory are currently being used and by whom. Decide which processes to load when memory space becomes available. Allocate and deallocate memory space as needed.,- Main-Memory Management,Operating System Concepts,3.1 System Components (3),A file is a collection of related informa
7、tion defined by its creator. Commonly, files represent programs ( both source and object forms) and data. The OS implements the abstract concept of a file by managing mass storage media and the devices that control them. Flies are normally organized into directories to ease their use. The operating
8、system is responsible for the following activities in connection with file management: File creation and deletion. Directory creation and deletion. Support of primitives for manipulating files and directories. Mapping files onto secondary storage. File backup on stable (nonvolatile) storage media.,-
9、 File Management,Operating System Concepts,3.1 System Components (4),One of the purposes of OS is to hide the peculiarities of specific hardware devices from user. The peculiarities of I/O devices are hidden from the bulk of the OS itself by the I/O subsystem. The I/O system consists of: A buffer-ca
10、ching system A general device-driver interface Drivers for specific hardware devices Only the device driver knows the peculiarities of the specific device to which it is assigned.,- I/O System Management,Operating System Concepts,3.1 System Components (5),Since main memory (primary storage) is volat
11、ile and too small to accommodate all data and programs permanently, the computer system must provide secondary storage to back up main memory. Most modern computer systems use disks as the principle on-line storage medium, for both programs and data. The operating system is responsible for the follo
12、wing activities in connection with disk management: Free space management Storage allocation Disk scheduling,- Secondary-Storage Management,Operating System Concepts,3.1 System Components (6),A distributed system is a collection of processors that do not share memory or a clock. Each processor has i
13、ts own local memory and clock. The processors in the system are connected through a communication network. Communication takes place using a protocol. A distributed system provides user access to various system resources. Access to a shared resource allows: Computation speed-up Increased data availa
14、bility Enhanced reliability,- Networking (Distributed Systems),Operating System Concepts,3.1 System Components (7),Protection refers to a mechanism for controlling access by programs, processes, or users to both system and user resources. The protection mechanism must: distinguish between authorized
15、 and unauthorized usage. specify the controls to be imposed. provide a means of enforcement.,- Protection System,Operating System Concepts,3.1 System Components (8),Command-interpreter is the interface between the user and the operating system. Some OS include the command-interpreter in the kernel w
16、hile others as a special program. The program that reads and interprets control statements is called variously: command-line interpreter shell (in UNIX) Its function is to get and execute the next command statement.,- Command-Interpreter System,Operating System Concepts,3.1 System Components (9),Man
17、y commands are given to the operating system by control statements which deal with: process creation and management I/O handling secondary-storage management main-memory management file-system access protection networking,- Command-Interpreter System,Operating System Concepts,3.2 Operating System Se
18、rvices,Commonly, the OS provides the following services for programmer to make the programming task easier. Program execution system capability to load a program into memory and to run it. I/O operations since user programs cannot execute I/O operations directly, the operating system must provide so
19、me means to perform I/O. File-system manipulation program capability to read, write, create, and delete files. Communications exchange information between processes executing either on the same computer or on different systems tied together by a network. Implemented via shared memory or message pass
20、ing. Error detection ensure correct computing by detecting errors in the CPU and memory hardware, in I/O devices, or in user programs.,Operating System Concepts,3.2 Operating System Services (1),Additional functions exist not for helping the user, but rather for ensuring efficient system operations.
21、 Resource allocation allocating resources to multiple users or multiple jobs running at the same time. Accounting keep track of and record which users use how much and what kinds of computer resources for account billing or for accumulating usage statistics. Protection ensuring that all access to sy
22、stem resources is controlled.,Operating System Concepts,3.3 System Calls,*System calls provide the interface between a running program and the OS. Generally available as assembly-language instructions. Languages defined to replace assembly language for systems programming and allow system calls to b
23、e made directly (e.g., C, C+) Run-time support system (the set of functions built into libraries included with a compiler) for most programming languages provides a much simple interface.,Operating System Concepts,3.3 System Calls (1),Three general methods are used to pass parameters from a running
24、program to the operating system system calls. Pass parameters in registers. Store the parameters in a table in memory, and the table address is passed as a parameter in a register. (taken by Linux) Push (store) the parameters onto the stack by the program, and pop off the stack by operating system.,
25、Operating System Concepts,3.3 System Calls (2),Passing of parameters as a table,Operating System Concepts,3.3 System Calls (3),Types of System Calls Process control end, abort; load, execute; create, terminate; get/set attributes; wait for time; wait event, signal event; allocate and free memory. Fi
26、le management create/delete; open/close; read, write, reposition; get/set attributes. Device management request/release device; read, write reposition; get/set attributes; logically attach or detach devices. Information maintenance get/set time or date; get/set system data; get/set process, file, or
27、 device attributes. Communications create/delete communication connection; send/receive message; transfer status information; attach or detach remote devices.,Operating System Concepts,Communication Models,Communication may take place using either message passing or shared memory.,Operating System C
28、oncepts,3.4 System Programs,System programs provide a convenient environment for program development and execution. Some of them are simply user interfaces to system calls. They can be divided into: File manipulation Status information File modification Programming language support Program loading a
29、nd execution Communications Most users view of the operation system is defined by system programs, not the actual system calls.,Operating System Concepts,3.4 System Programs (1),The most important system program for an OS is the command interpreter. Application programs solve common problems or perf
30、orm common operations, also system utilities. Such as web browsers, word processors, spreadsheets Also include programs made by users Database systems is application programs?,Operating System Concepts,Components of a computer system,Operating System Concepts,3.5 System Structure,MS-DOS written to p
31、rovide the most functionality in the least space, because of the limited hardware on which it ran. not divided into modules Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated,- Simple Structure,Operating System Concepts,MS-DOS Layer Structure,Operat
32、ing System Concepts,3.5 System Structure (1),UNIX another limited by hardware functionality, the original UNIX operating system had limited structuring. It consists of two separable parts. Systems programs The kernel Consists of everything below the system-call interface and above the physical hardware Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level. An enormous of functionality to be combined into o level. This makes UNIX difficult to enhance, as c
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 核心素養(yǎng)導(dǎo)向的小學(xué)數(shù)學(xué)單元整體教學(xué)策略研究
- 2025~2026學(xué)年河南省濟源市九年級上學(xué)期10月期中道德與法治試卷
- 中藥學(xué)的畢業(yè)論文
- 歷年法學(xué)本科畢業(yè)論文
- 2026屆河北省永年縣一中數(shù)學(xué)高一上期末統(tǒng)考模擬試題含解析
- 車輛安全生產(chǎn)培訓(xùn)資料課件
- 2026年宜黃縣城市管理局公開招聘協(xié)管員備考題庫及完整答案詳解1套
- 2026年成都傳媒集團人力資源服務(wù)中心關(guān)于編輯、發(fā)行經(jīng)理、渠道經(jīng)理等崗位的招聘備考題庫含答案詳解
- 2026年中遠海運航空貨運代理有限公司重慶分公司招聘備考題庫及1套參考答案詳解
- 2026年中央網(wǎng)信辦直屬事業(yè)單位-國家計算機網(wǎng)絡(luò)應(yīng)急技術(shù)處理協(xié)調(diào)中心校園招聘備考題庫及參考答案詳解
- 2026年寧夏賀蘭工業(yè)園區(qū)管委會工作人員社會化公開招聘備考題庫附答案詳解
- 盤州市教育局機關(guān)所屬事業(yè)單位2025年公開考調(diào)工作人員備考題庫完整答案詳解
- 2025-2026四年級上科學(xué)期末檢測試題
- 遼寧省鞍山市2025-2026學(xué)年八年級上學(xué)期1月期末語文試卷
- 班級演唱會課件
- 2025馬年元旦新春晚會活動策劃
- 交警新警執(zhí)法培訓(xùn)
- 急性毒性測試:類器官芯片的快速響應(yīng)
- 骨科護理標準操作流程手冊
- 產(chǎn)品推廣專員培訓(xùn)
- DB65T 3119-2022 建筑消防設(shè)施管理規(guī)范
評論
0/150
提交評論