Start learning process tomorrow, in the previous SCM development, there is no process this concept, but from the Internet to understand that this thing in the operating system seems to have a very important position, must study hard!
——————————————————————————————————————————————————————————————————
Program is a generic file that is a collection of instruction sequences and data that is prepared for a specific task and stored on disk in an "executable image" format. For example: hello.c source program files are compiled after the a.out program, wherein the A.out file is an executable image format, Linux/bin,/sbin,/usr/bin,/usr/sbin directory to save a lot of program files.
A process is an instance of a program that has started execution but has not yet been terminated. Using the PS command under the Linux system, you can view the currently executing process. Each process contains resources such as the process runtime environment, the memory address space, the process ID, and at least one execution control flow called a thread. The same program can be instantiated as multiple process entities. All process entities in the operating system share the CPU, peripherals and other resources of the computer system.
The current state of a process can be observed when the Linux system uses the "Ps-aux" command:
Each process is created with a process ID assigned to it to identify the current process, such as the 1,2,3,4 in ...
That process, called Init, is the mother of all processes, so her process ID is 1.
Linux Learning Notes (7)-Process