프로세스
- state들로 구성된 context
- 그 context 안에서 수행되는 execution stream
- execution stream을 다른 말로 하면 thread of control, 또는 thread
- Unit of resource ownership -> process 또는 task
- Unit of dispatching -> thread 또는 lightweight process
쓰레드
- has an execution state (running, ready, blocked)
- saves thread context when not running
- has a runtime stack for local variables and some per-thread static memory
- has access to the memory address space and resource of its process
- all threads of a process share these
- when one thread alters a (non-private) memory item, all other threads (of the process) see that
- a file opened by a thread is available to others
single threading vs multi threading
'컴퓨터 > 운영체제 OS' 카테고리의 다른 글
리눅스 런타임 메모리 이미지 (0) | 2024.05.27 |
---|---|
운영체제OS - SW계의 수령님 - SW인데 추상화를 곁들인.. HW를 보호.. 간단하고 일관된 인터페이스를 app에 제공.. (0) | 2024.05.27 |
Condition Variable - 변수가 아니라고? (0) | 2024.05.19 |
Process Concepts - 그래서 프로세스가 뭔데요 (0) | 2024.05.19 |
심볼 symbol (0) | 2024.05.18 |