2019329621035_张浩严_homework2 Version 0 |
|
👤 Author: by 2351505710qqcom 2021-12-23 05:56:36 |
the relation and difierence between process and program:
1.A process is an instance of a program that is executing on a computer.
2.The text part of process is the program.
3.Process is in memory and program is in external memory.
the reason for five states:
两状态进程模型包括运行态和非运行态,因为进程的生存期都离不开创建和终止,所以我们要加上新建态和退出态,状态数来到四。但是由于存在着一些处于非运行状态但已经就需等待执行的进程,而同时存在另外一些处于阻塞状态等待I/O操作结束的进程,解决这一情况比较自然的方法就是将非运行状态分为就绪和阻塞。这样进程状态来到了新建(new)、就绪(ready)、运行(running)、阻塞(blocked)、退出(exit)。而此时进程的状态已经满足了基本的需求所以不需要再继续添加状态。
The contents of PCB:
1.process state
2.program counter
3.cpu registers
4.cpu-scheduling information
5.memory-management information
6.accounting information
7.I/O status information