One, process and the distinction that use a program
Process (Process) it is original definition environment of operating system of much user, much task waits in Unix the implements unit basically concept in next at expressing to apply a program inside to put an environment using. It is with Unix operating system exemple, the process is the main ingredient in environment of Unix operating system, main unit that is systematic resource allocation. The almost all user that finishs in Unix operating system manages and the control that uses order process through operating system correspondence realizes the job such as resource allocation.
The source program classics that the language such as C, C , Java writes is compiled accordingly implement after compiling executable document, refer computer processor to move. At this moment, at the application in executable condition the program calls a progress. From the point of user angle, the process is a when use a program executive process. From the point of angle of operating system core, what the process represents is time of memory of operating system distributive, CPU piece the main unit that waits for resource, it is the moving environment that provides for the program that running. Process and the distinction that use a program depend on applying a program to be as filestore of a static state in the storage space such as the hard disk of all of computer science department, and the process is to be in the systematic resource that defends by the operating system below dynamic condition to manage entity. The main characteristic that order process uses below much task environment includes:
● process has the initiative entrance of memory unit to nod in executive process, and independent memory address space is had from beginning to end in process surviving process;
Of ● process live period condition includes to found, be in order, move, the type such as block and death;
The moving statement form that ● gives out to CPU in executive process from applied process process is different, can be the state branch of the process user voice and nuclear state of mind. Be in what the process below user voice carries out is the applied process injunction, application that is in core condition to fall what order process carries out is operating system instruction.
In the process of Unix operating system that start, the system establishs the systematic process such as Swapper, Init automatically, use at managing memory resource and undertake attempering waiting to user process. No matter be the process that establishs by the operating system,carry out the process that establish by applied process even below Unix environment, all have only course to mark (PID) .
2, the distinction of process and Java line Cheng
The code in executive process of a the address of initiative entry point that in carrying out a process, applied process puts in space of a memory, order carries out alignment and the memory outlet that are used at label process end to nod an address, in the process the each time place in executive process all has only processor statement and memory unit address to answer relatively.
JAVA tutorial: The multi-line Cheng mechanism of analytic Java
来源:
作者:Stand originally
时间:2008-12-21
Tag:
点击:
最新评论共有 0 位网友发表了评论
查看所有评论
发表评论
热点关注

