본문 바로가기
프로그래밍/운영체제

스레드(Thread)는 무엇인가?

by argentdarae 2025. 3. 19.
반응형

스레드는 프로세스 내에서 작업을 수행하는 주체이다

 

프로세스는 CPU, 메모리 등의 자원을 할당받는데, 이 할당받은 자원을 이용하는 실행의 단위이다

 

출처: https://afteracademy.com/blog/what-is-a-thread-in-os-and-what-are-the-differences-between-a-process-and-a-thread/

 

 

위 자료와 같이 스레드는 프로세스 내에서 각각 스택만 따로 할당 받고 코드와 데이터, 힙 영역은 공유한다

 


Reference

Thread (computing) - Wikipedia

What is a Thread in OS and what are the differences between a Process and a Thread? - After Academy