process, thread, coprocessor three brothers, those things.
1. Threads
- Definition: A thread is the smallest unit that the operating system can perform operations on.
- Self-Understanding: Thread open, shared resources, thread is the system's call resource order, process is directly to the CPU, is CPU-based.
- Feature decision usage (multithreading)
2. Process
- Definition: A program cannot run on its own, only the program is loaded into memory, and the system allocates resources for it to run, and the program that executes is called a process.
- Self-understanding: Process Conservative, encapsulating resources. The program itself is not executable, it is just some static code, but to the operating system will read to the dynamic activity. A process is a collection of instructions, with at least one main thread. The process needs to allocate resources and is resource-intensive.
- Feature decision usage (multi-process)
3. Co-process
process, thread, and coprocessor summary