Differences in processes and procedures

Source: Internet
Author: User

process Definition: A program that has a separate function to run an activity about a data set. It can apply and own system resources, is a dynamic concept, is an active entity. It is not just the code of the program, it also includes the current activity, which is represented by the value of the program counter and the contents of the processing register.

program definition: just a set of ordered sets of instructions, which itself does not have any meaning of running, it is just a static entity.

Difference:

1. A process is a running activity of a program and belongs to a dynamic concept. A program is an ordered set of static instructions, which is a static concept.  However, the process leaves the program and there is no sense of existence. Thus, we can say that a process is a dynamic process of executing a program, while a program is a static text that is run by a process. If we compare a movie copy of a cartoon to a program, then this animated film can be compared to a process.

2.a process can execute one or more programs. For example, a process isCwhen the source program compiles, it performs several programs, such as pre-processing, lexical parsing, code generation, and optimization. Conversely, the same program may be executed concurrently by multiple processes, for example: the aboveCCompilation   translation   process   sequence     can   with     is  ,  ,  ,  ,  ,  ,,  it.       same   or   not   the     source     order     non   progressive   line   compilation  ,      production   life     target     sequence.   I          , and then  ,  ,  ,  ,  ,  ,  ,  , for example,   A   time   power   Shadow   play     live   action     to   even   cont   and         motion   painting   film,  this     when   in   one     into  ,     to     Lines   Several     process   sequence.   Anti- , one     action    ,  ,    ,    ,  ,   and  .         Medium    ,  this     when     more     go     to       lines       and   one   process   sequence.   No   to   note   meaning     is,    home   Electric   film   Institute   put   map &nbsp      Power   Shadow,  such as  ,  ,  ,  ,  ,  ,  ,  ,   that     real   Inter     is the   intersection   Fork   Progressive   line  . But   at        ,  , and    ,,     ,  ,  ,  ,   complete.     with     when   make   with   one     process   sequence   copy.

3.                      Investment   Source length   period   insurance   holding  ,           is   one   times   firm    ,   It   is   temporary  ,  is   dynamic   State     production     and   final    .   this   phase   when   on     shadow   copy  ,        length   period   insurance   save and   one   time   put   map   live   dynamic     only extended   1 ~ 2  Span style= "font-family: the song Body;" > small   time.

Processes need to use an institution to execute the program, which is called a processor (Processor). Processor execution instructions, according to the nature of the instruction, the processing machine can be used alone hardware or software and hardware together to form. If the instruction is a machine instruction, then the processor is what we generally call the central processor (CPU).

Differences in processes and procedures

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.