
Type of Memory In running a C program, there are two types of memory that are allocated. Stack memory: The allocations of deallocations of it are mangaged implicitly by compiler for a programmer(so called as automatic memory). A stack frame stores return address, function parameters, and tempral variables etc. Heap memory: The allocations and deallocations are explicitly handled by the programme..

sometimes referred to as a fair-share scheduler. Proportional-share is based around a simple concept: Instead of optimizing for turn-around or response time, a scheduler might instead try to guarantee that each job obtain a certain percentage of CPU time. lottery scheduling: ← Proportional Share의 좋은 예 The basic idea is quite simple: 다음 실행될 프로세스를 추첨을 통해 결정한다. 더 자주 수행되어야하는 프로세스는 당첨 기회를 더 많이 준다. lo..

지난 시간에 배운 이야기 핵심: CPU를 어떻게 Virtualization을 하느냐? 방법: Time-Sharing을 한다. 조그만한 Time slot을 나눈다 → 각각의 프로세스에 Time slot을 하나씩 배정한다 Process가 Time Slot을 다 쓰고 안 내놓는 가능성이 있었다. ⇒ 초창기 Cooperative Approach 방식 이 방식은 Prcocess가 자신의 load를 다 끝날 때까지 CPU를 손에 잡고 있거나 처리 시간이 너무 오래 걸린다면 알아서 CPU를 내놓을 것이라고 기대했었다. Non-Cooperative Approach: 하드웨어 타이머를 사용하기로함 하드웨어 타이머가 완료되었을 때 찾아가야하는 트랩핸들러를 부팅 과정에서 기록을 해놓는다. 그리고 타이머가 완료되면은 운영체제..

༼ つ ◕_◕ ༽つ Process 배울 때 Virtualization of CPU = mechanism + policy란 사실을 우리는 배웠다.🤔 이제 그 중 mechanism에 대해 배운다. 상당히 혼미하다. 😣! Mechanism: Limited Direct Execution Introduction By time sharing the CPU, virtualization is achieved. THEN.. Performance: how can we implement virtualization without adding excessive overhead to the system? Control: how can we run process efficiently while retaining control ov..

운영체제 동작 이해 핵심 키워드: USER MODE || KERNEL MODE, SYSTEM CALL 시작하실때 교수님의 말씀: 운영체제는 User,kenel 모드로 나누어져 있으며 kenel 모드엔 user가 접근하지 못한다. 또한 kenel 모드에서 user모드가 시작된다. user는 system의 기능이 사용하고 싶을 때에는 즉, 하드웨어를 사용하고 싶을 때 system call를 사용한다. control은 kenel딴으로 넘어가며 system call이 끝나면 결과 완료를 user에게 넘겨준다. In this interlude, we discuss process creation in Unix systems. Unix system Unix presents one of the most intrigui..

참고 자료[운영체제] 프로세스가 뭐지? OS_Chap04.pdf Process: running program Program : itself is a lifeless thing. Just sits there on the disk. a bunch of instructions and maybe some static data *con-text switch to stop running one program and start running another *scheduling policy are algorithms for making some kind of decision within the OS. How To Provide The Illusion Of Many CPUS? ⇒ Virtualizing. By runni..