What is a Thread?
- A thread is the smallest unit of execution within a process.
- A single process can have multiple threads.
- Unlike processes, which each have their own code, data, and heap,threads share the code, data, and heap of their process. → This allows multiple tasks to run concurrently within a single process.
Multithreading
- Multithreading is a technique where multiple threads within a process share the workload.
- Since threads share memory and resources, it is more efficient in terms of memory usage, faster than inter-process communication, and generally provides better performance.

'Computer Science > Operating System' 카테고리의 다른 글
| Structure of CPU scheduling algorithm and each algorithm (0) | 2025.08.29 |
|---|---|
| Shared resources, Critical sections, and Deadlock (0) | 2025.08.23 |
| PCB & Context Switching (0) | 2025.08.03 |
| Process (0) | 2025.07.30 |
| How memory manages data (0) | 2025.07.27 |