1, Thread: A collection of instructions, the OS to schedule the smallest unit of CPU is the thread,
The thread is contained in the process and is the actual operating unit in the process.
2, different application software uses different memory, otherwise can access each other, there is no security. The memory of each program is independent.
3. Process: A collection of various resources of a program is called a process.
4. Process to operate the CPU, you must first create a thread. The operating CPU is implemented by threads.
5. The process is the house, the thread is the people in the room, is living, table, space and so on. The process cannot execute and the process wants to execute and must first create at least one thread.
6.CPU itself is not the data, the CPU itself is only responsible for the operation. Multiple threads can share a single CPU.
7. A process can consist of one or more threads. All the threads in a process has the same view of the memory.
All threads in the same process share the same block of memory space. This memory space contains: file descriptors, security authentication information, and so on.
8. An instance of an executed program is called a process.
Threads and processes