Process (i)--process concept

Source: Internet
Author: User

Processes and Threadsdefinition of the process
a process is a dynamic Execution of a program with a certain independent function on a data set.
the composition of the process
The process contains all the state information for a program that is running
  • Code

  • Data

  • Status Register

    • CPU status CR0, instruction pointer IP

  • General purpose Registers

    • AX,BX, CX ...

  • Process consumes system resources

    • Open the file. Allocated memory ....

characteristics of the process
  • Dynamic nature

  • Concurrency of

    • Processes can be independently dispatched and consumed by processor operations

  • Independence

  • Restriction of

    • Constraints due to access to shared data/resources or inter-process synchronization

process-to-program linkages
  • Process is an abstraction of the operating system in the executing State program
    • program = file (static executable file)

    • Process = Program in progress = program + execution Status

  • Multiple executions of the same program correspond to different processes
    • Multiple executions of the command "LS" corresponding to several processes

  • Required resources for Process execution
    • Memory: Saving code and data
    • CPU: Execution Instructions
the difference between a process and a program
    • The process is dynamic and the program is static
      • A program is a collection of ordered code

      • Process is the execution of the program, the process has a kernel mentality/user state

    • The process is temporary and the program is permanent.
    • The process differs from the composition of the program
      • Process components include program, data, and process control blocks

Process (i)--process concept

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.