What is the purpose of Process? describe their relation and difference for process and program. Why the status of process is divided into five states, not other numbers,such as 4,7?
1.Processes are introduced to allow concurrent execution of programs. Multiprogramming technology is to achieve the concurrent execution of programs, but the program itself can not be executed concurrently, because the resources are shared during the concurrent execution of programs, and the concurrent execution of multiple programs will change the state of resources and change the results
2.(1) The program is permanent; the process is temporary, which is an execution of the program on the data set. If it is created or revoked, the existence is temporary; (2) the concept that the program is static and the process is dynamic; (3) the process has concurrency, but the program does not; (4) the process is the basic unit of competing for computer resources, and the program is not. (5) Processes and programs are not one-to-one: a program can correspond to multiple processes, that is, multiple processes can execute the same program; a process can execute one or more programs
3.There are three basic states of a process: ready state, running state and waiting state. (also known as blocking, hanging, sleeping) Other processes in concurrent execution have mutual constraints. Sometimes they are in the running state, sometimes they are suspended for some reason, and they are in the waiting state. When the reasons for suspending them disappear, they enter the ready running state. So we have to distinguish these states. PostVer 0
A process is an execution environment composed of text segments, user segments, and system segments.
The difference between a process and an application program is that the application program is stored as a static file in the storage space such as the hard disk of the computer system, while the process is a system resource management entity maintained by the operating system under dynamic conditions.
Other processes in concurrent execution have a mutually restrictive relationship. It is sometimes in a running state, sometimes suspended for some reason, in a waiting state, and when the reason for suspending it disappears, it is ready to run again. So you have to distinguish between these states. PostVer 0
2.(1) The program is permanent; the process is temporary, which is an execution of the program on the data set. If it is created or revoked, the existence is temporary; (2) the concept that the program is static and the process is dynamic; (3) the process has concurrency, but the program does not; (4) the process is the basic unit of competing for computer resources, and the program is not. (5) Processes and programs are not one-to-one: a program can correspond to multiple processes, that is, multiple processes can execute the same program; a process can execute one or more programs
3.There are three basic states of a process: ready state, running state and waiting state. (also known as blocking, hanging, sleeping) Other processes in concurrent execution have mutual constraints. Sometimes they are in the running state, sometimes they are suspended for some reason, and they are in the waiting state. When the reasons for suspending them disappear, they enter the ready running state. So we have to distinguish these states. PostVer 0
Please login to reply. Login