Skip to content

Commit

Permalink
Create operating_system.md
Browse files Browse the repository at this point in the history
  • Loading branch information
firstimedeveloper authored Sep 8, 2022
1 parent a19f1b6 commit 0149303
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions operating_system.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
유저 모드: 하드웨어 접근이 안됨, 접근 시도 할 시, 익셉션이 발동함. 운영체제의 익셉션 핸들러 --> 커널모드로 변환됨.

cooperative approach: wait until a process makes a system call
non-cooperative approach: os takes control
- problem: 해킹에 취약함, 프로그램에 버그가 있어도 컴퓨터가 먹통이 될 수 있음.
Earlier versions of OSs used to take the cooperative approach.

interrupt: an unexpected event from outside the process
exception: an unexpected even from within the process

timer interrupt: (intel) interrupt number 0.


context switch: written in assembly

scheduling:
- preemptive: can take cpu time from a running job
- non-preemptive: cannot take cpu time from a running job
- sjf: smallest average turnaround time for a non-preemptive
- problem: 간발의 차로 큰 job가 들어오면, 결국 다 늦어짐.
-

0 comments on commit 0149303

Please sign in to comment.