四川大学:《操作系统 Operating System》课程教学资源(PPT课件讲稿)Chapter 3 Process Description and Control 3.4 Process Control 3.5 Execution of the Operating System 3.6 Unix SVR4 Process Management 3.7 Linux Process management system calls

Chap3 Process description and control ·3.1 What is a process 3.2 Process states 3.3 Process description ·3.4 Process contro 3.5 Execution of the Operating System 3.6 Unix SVR4 Process Management 3.7 Linux Process management system calls
Chap3 Process Description and Control • 3.1 What is a Process • 3.2 Process States • 3.3 Process Description • 3.4 Process Control • 3.5 Execution of the Operating System • 3.6 Unix SVR4 Process Management • 3.7 Linux Process management system calls 2

3. 4 Process Control 3. 4.1 Modes of execution 3.4.2 Process creation 3.4.3 Process Switching
3.4 Process Control • 3.4.1 Modes of Execution • 3.4.2 Process Creation • 3.4.3 Process Switching 3

3.4.1 Modes of Execution(1/ 1) User mode Less-privileged mode User programs typically execute in this mode System mode, control mode, or kernel mode More-privileged mode Kernel of the operating system Translation between the two model Processor status register(psr) and current privileged level(cpl User mode-> System mode System mode->User mode
3.4.1 Modes of Execution(1/1) • User mode • Less-privileged mode • User programs typically execute in this mode • System mode, control mode, or kernel mode • More-privileged mode • Kernel of the operating system • Translation between the two model • Processor status register (psr) and current privileged level (cpl) • User mode->System mode • System mode->User mode 4

3. 4 Process Control 3. 4.1 Modes of execution 3.4.2 Process creation 3.4.3 Process Switching 3.4.4 Execution of the Operating System
3.4 Process Control • 3.4.1 Modes of Execution • 3.4.2 Process Creation • 3.4.3 Process Switching • 3.4.4 Execution of the Operating System 5

3.4.2 Process Creation( 1/3) Assign a unique process identifier Allocate space for the process Initialize process control block Set up appropriate linkages Ex:add new process to linked list used for scheduling queue Create of expand other data structures Ex: maintain an accounting file
3.4.2 Process Creation(1/3) • Assign a unique process identifier • Allocate space for the process • Initialize process control block • Set up appropriate linkages • Ex: add new process to linked list used for scheduling queue • Create of expand other data structures • Ex: maintain an accounting file 6

3.4.2 Process Creation( 2/ 3) Process tree for a Linux system Processes may create other processes through appropriate system calls, such as fork Init is the root/parent of all processes executing on inux except process o slgubuntu: -S pstree letworkManager-rdhclient Pd=3028 GAuthService accounts-daemon-Tfgdbus] Remain getty anacron apt systemd. dai--apt. systemd, dai-apt - get *[http] tore olord-Tigdbus] Domain pid=9204
3.4.2 Process Creation(2/3) • Process tree for a Linux system • Processes may create other processes through appropriate system calls, such as fork • Init is the root/parent of all processes executing on Linux except process 0. 7

3.4.2 Process Creation(3/3) Linux startup process The init process is the last step in the boot procedure ON POWER UP BIOS his is your GRUB or LILO, where you choose the Os you want to start. BOOT LOADER KERNEL SPACE Your os kernel loads its extensions the device drivers(but not only. KERNEL LOADING USERLAND The first process: runs on-boot processes and manage all processes INIT SYSTEM until shutdown
3.4.2 Process Creation(3/3) 8 • Linux startup process • The init process is the last step in the boot procedure

3. 4 Process Control 3. 4.1 Modes of execution 3.4.2 Process creation .3. 4.3 Process Switching
3.4 Process Control • 3.4.1 Modes of Execution • 3.4.2 Process Creation • 3.4.3 Process Switching 9

3. 4.3 Process Switching( 1/3) process Po operating system process interrupt or system call executing save state into PCBo idle reload state from PCB idle interrupt or system call executing save state into PCB1 dle reload state from PCBo ecuting 10
3.4.3 Process Switching(1/3) 10

3. 4.3 Process Switching( 2/3) Mode switching User Mode->Kernel Mode 1. Interrupt Clock interrupt: process has executed for the maximum allowable time slice ·I/ O interrupt Memory fault: Referenced virtual address is not in main memory, so it must be brought in 2. Trap error or exception occurred, may cause process to be moved to exit state 3. Supervisor call (System Call such as file open
3.4.3 Process Switching(2/3) • Mode Switching: User Mode -> Kernel Mode • 1. Interrupt • Clock interrupt: process has executed for the maximum allowable time slice • I/O interrupt • Memory fault: Referenced virtual address is not in main memory, so it must be brought in. 2. Trap • error or exception occurred, may cause process to be moved to Exit state 3. Supervisor call (System Call) • such as file open 11
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《数据结构》课程教学资源(PPT课件讲稿)第七章 图 Graph.ppt
- 《数据结构》课程教学资源:实践教学大纲.doc
- 《网络算法学》课程教学资源(PPT课件讲稿)第三章 实现原则.ppt
- 《电脑组装与维护实例教程》教学资源(PPT课件讲稿)第5章 多媒体设备介绍及选购.ppt
- 广西医科大学:《计算机网络 Computer Networking》课程教学资源(PPT课件讲稿)Chapter 02 Network Classification.pptx
- 清华大学:无线网和移动网(PPT课件讲稿)Mobile and wireless network.pptx
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第6章 Data-Level Parallelism in Vector, SIMD, and GPU Architectures.pptx
- 厦门大学:《分布式数据库》课程教学资源(PPT课件讲稿)专题一 分布式数据库介绍.ppt
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 06 OOP with Templates.ppt
- 武汉科技大学中南分校:Windows 2000/XP网络组建与系统管理(系统安装,李燕).ppt
- 电子科技大学:《面向对象程序设计语言C++》课程教学资源(PPT课件讲稿)第五章 构造数据类型.ppt
- 《C语言程序设计》课程电子教案(PPT教学课件)第三章 分支结构.ppt
- 计算机维护与维修(PPT课件讲稿)第十二章 笔记本电脑维护维修.ppt
- 西安电子科技大学:《微机原理与接口技术》课程教学资源(PPT课件讲稿)第四章 汇编语言程序设计(主讲:王晓甜).pptx
- 厦门大学计算机科学系:《大数据技术原理与应用》课程教学资源(PPT课件)第12章 数据可视化.ppt
- 《计算机操作系统》课程教学资源(PPT讲稿)Windows 2003的安全.ppt
- 《计算机图形学》课程教学资源(PPT课件讲稿)Chapter 5 Attributes of Graphics Primitives.pptx
- 《计算机原理及应用》课程教学资源(PPT课件讲稿)第9章 单片机I/O接口扩展技术.pptx
- 《Access 2013数据库技术及应用》课程教学资源(PPT课件讲稿)第12章 VBA模块设计.ppt
- 清华大学:智能弹性重叠网关键技术研究(PPT讲稿,指导老师:李衍达).ppt
- 大连理工大学:《计算机网络》课程教学资源(PPT课件讲稿)Chapter 2 应用层 application layer.ppt
- 3D Reconstruction from Images:Image-based Street-side City Modeling.ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第七章 图及其应用.ppt
- 香港城市大学:基序检测的随机化算法(PPT讲稿)Randomized Algorithm for Motif Detection.ppt
- 《计算机组装与维护》课程教学资源(PPT课件讲稿)第9章 BIOS设置(设置BIOS).ppt
- 《Introduction to Java Programming》课程PPT教学课件(Sixth Edition)Chapter 16 Applets and Multimedia.ppt
- 上海交通大学:《挖掘海量数据集 Mining Massive Datasets》课程教学资源(PPT讲稿)Lecture 06 搜索引擎 Search Engines.ppt
- 《计算机系统安全》课程教学资源(PPT课件讲稿)第二章 黑客常用的系统攻击方法.ppt
- 《C语言程序设计》课程教学资源(PPT课件讲稿)第8章 结构体、共用体与枚举类型.ppt
- 香港浸会大学:Introduction to Linux and PC Cluster.ppt
- 南京大学:《计算机图形学》课程教学资源(PPT课件讲稿)第7讲 图元填充与裁剪算法.pptx
- 北京航空航天大学:SimplyDroid - Efficient Event Sequence Simplification for Android Application.pptx
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 04 Object-Based Programming.ppt
- 中国科学技术大学:Linux内核源代码导读(PPT讲稿,陈香兰).ppt
- 《网上开店实务》课程教学资源(PPT讲稿)学习情境3 网店装修.ppt
- 北京大学:《项目成本管理》课程教学资源(PPT课件讲稿)项目范围计划(主讲:周立新).ppt
- 香港中文大学:Achieving Secure and Cooperative Wireless Networks with Trust Modeling and Game Theory.ppt
- MSCIT 5210/MSCBD 5002:Knowledge Discovery and Data Mining:Chapter 4:Data Warehousing, On-line Analytical Processing and Data Cube.ppt
- 《程序设计基础》课程PPT教学课件(C++)第3讲 C++程序控制结构.ppt
- 四川大学:《数据库技术》课程教学资源(PPT课件讲稿)数据库设计.ppt