Home > Back-end >  Learning summary - processes and threads
Learning summary - processes and threads

Time:10-27

1. The threads are the smallest units of program execution, and the process is the operating system is the smallest unit of allocation of resources;
2. A process is composed of one or more threads, thread is a different line of code in the process of
3. Between processes are independent of each other, but under the same process of sharing program memory space between each thread (including code, data sets, heap, etc.) and some process level of resources (e.g., open the file and letter
Number, etc.), a process of thread is not visible in other process;
4. Scheduling and switch: thread context switch context switch is much faster than the process

CodePudding user response:

Top, consider
  • Related