운영체제의 역할은 네 가지로 정의할 수 있다.1\. CPU스케줄링과 프로세스 관리어떤 프로그램을, 얼마만큼 실행할 것인지 CPU에게 명령2\. 메모리 관리메모리를 어떤 프로세스에 얼만큼 할당할지 결정3\. 디스크 관리디스크 파일을 어떤 방법으로 보관할지 결정4\. I/
앞서 컴퓨터 구조를 공부했듯이, CPU는 메모리에 올려져있는 명령어를 단지 실행할 뿐이다.CPU와 가장 가까이 있는 레지스터부터 디스크까지 메모리 계층 구조에 관해 알아보자.메모리 계층은 레지스터, 캐시(L1, L2, L3), RAM, 디스크(HDD/SSD)로 이루어져
1. 프로세스와 스레드 프로세스 프로세스는 한정된 시간동안 CPU를 차지하고 타이머 인터럽트가 발생하면 다른 프로세스에게 차례를 넘긴다. 스레드 스레드에는 스레드 ID, 레지스터 값, 스택 등 실행에 필요한 최소한의 정보가 담겨있다. PCB(Process Co