본문 바로가기

CS10

[Operating System Concepts] Chapter4 Thread & Concurrency Overview Multicore Programming Multithreading Model POSIX thread(pthread) Implicit Threading Overview 지금까지 하나의 프로세스의 single thread control에 다루었다. 복제할 필요없이 하나의 프로세스에서 다른 스레드를 생성하는 방식으로 만들었다. Thread (=LWP : Light weight process) cpu 를 점유하는 가장 작은 단위가 스레드가 된다. process id(pid) 가 cpu를 점유하는게 아니라 thread id(tid)가 cpu를 점유한다. program counter, register set, stack또한 스레드 단위로 달라진다. 한 프로세스 내부에서 생긴 스레드들은 code / .. 2023. 10. 31.
[Operating System Concepts] Chapter3 Process (Part.2) IPC Shared Memory : Producer-Consumer Problem Message-Passing System IPC System w/ Producer-Consumer Problem Pipes Socket & RPC IPC (Interprocess Communication) 프로세스는 두가지 방법으로 concurrently 하게 발생할 수 있음 독립적인 프로세스 → 별 문제없음 cooperating 프로세스 → 서로 영향을 주거나 받는다. 서로 메세지를 주고 받을 때의 문제를 어떻게 할것인가? ⇒ IPC : Interprocess Communication 이용한다. shared memory, message passing 두가지 방법의 통신이 있다. shared memory : 중간에 메모리를.. 2023. 10. 29.
[Operating System Concepts] Chapter3 Process (Part.1) Basic memory and process structure 5 state of process PCB Concepts Process Scheduling Context Switching OS can create process, terminate process How to create Processes? Basic memory and process structure 프로세스란 실행중인 프로그램으로 정의할 수 있다. OS는 프로세스 단위의 작업을 관리한다. HDD→load to memory영역 (process)→CPU 로 처리하는 일련의 과정이 time-sharing(시분할 시스템)을 통해 공유되어 있다. Memory Layout : 메모리 레이아웃은 여러 개의 영역으로 나뉘어 진다. < 컴파일 시 크기가.. 2023. 10. 27.
[Operating System Concepts] Chapter1, 2 Introduction & OS Structures 1. What is OS ? 2. 운영체제의 전체적인 방향 What is OS? 컴퓨터는 정보를 처리하는 장치이다. 계산기와는 서로다른 특성을 보인다. 정보의 최소 단위 : bit(binary digit) 정보의 처리: 정보의 상태 변환 (0 -> 1, 1 -> 0) bool 대수, 논리 게이트, 논리 회로 등으로 정보를 처리한다. 컴퓨터는 범용성(universality)와 계산가능성(computability)의 특성을 가지고 있다. 범용성 NOT, AND , OR 게이트만으로 모든 계산이 가능함 NAND 게이트만으로 모든 계산을 할 수 있다. 범용 컴퓨터 : general-purpose computer 계산가능성 Turing-computable : 튜링 머신으로 계산 가능한 것 정지 문제(Halting.. 2023. 10. 25.
반응형