Limited Direct Execution
-
제한된 직접 수행: restrict operation / context switching운영체제 2024. 3. 18. 16:27
직접 수행 (Direct Execution) 어떤 프로그램을 수행시키고 OS가 더 간섭을 안하는 상태를 의미합니다. 가장 빠른 건 이 방법인데, 문제가 있습니다. 타임쉐어링이 안되니까 -> 계속 그 프로세스 하나만 실행될 것 프로세스 하나가 독점해버리는 문제가 발생합니다. 그래서 이에 대한 해결책이 제한된 직접 수행 (Limited Direct Execution) 사용하는 방법이 두가지 있습니다. 1. 제한된 명령어. Restrict Operation 일반적인 명령어들은 직접 수행을 하게 해 줍니다. 대신 몇몇 명령어들은 실행해달라고 부탁해야 합니다. OS, 즉 커널은 이에 대해 부탁을 받고 실행을 해줍니다. 시스템 콜 이야기입니다. 유저모드, 커널모드를 왔다갔다 하는게 바로 이 이야기입니다. 이때 상태..