School Lecture Study/Linux System Application Design 16

6-1. Synchronization (1)

중앙대학교 3-2 리눅스 응용 설계 (손용석 교수님) 과목 정리입니다. Synchronization The need for synchronization Shared resources (data structures, variables) When multiple threads are dependent on a shared resource and they need to access it at the same time, it needs to ensure that only one thread accesses it at a given point in time. ** child thread는 parent thread의 global variable에 접근 가능 ** child process는 parent process..

5. Process and Thread

중앙대학교 3-2 리눅스 응용 설계 (손용석 교수님) 과목 정리입니다. From a Program to a Process Program sequence of instructions + data + metadata for program loading and execution Process in Linux Process means “running program” system에서 현재 실행되고 있는 program whenever program / command is executed / issued in linux, it creates / starts a new process pwd 가 실행되면 process가 시작된다. Linux는 5자리 ID 번호로 process를 기록 → PID (process ID) s..

4-2. Kernel module

중앙대학교 3-2 리눅스 응용 설계 (손용석 교수님) 과목 정리입니다. What is Kernel modules in Linux module은 필요에 따라 kernel에 load되거나 unload 될 수 있는 code 조각 system을 reboot할 필요 없이 kernel의 functionality를 확장시킬 수 있다. module의 하나인 device driver는 kernel이 system에 연결되어 있는 hardware에 접근할 수 있도록 한다. module 없으면, monolithic kernel을 구축하고 새로운 기능을 kernel image에 직접 추가해야 한다. 게다가 larger kernel을 갖고 있다면, 새로운 기능이 추가될 때마다 매번 kernel을 rebuild, reboot하는 ..

4-1. Design Principle of Linux Kernel

중앙대학교 3-2 리눅스 응용 설계 (손용석 교수님) 과목 정리입니다. Monolithic Kernel vs . Microkernel kernel이 OS의 가장 중요한 부분 Monolithic kernel OS architecture device drivers, file system, IPC 같은 대부분의 component가 kernel space에 포함 실행 가능한 module을 runtime에 dynamically load & unload 가능 Microkernel software의 near-minimum amount OS를 구현하기 위한 mechanism을 제공 mechanism은 address space management, thread management, inter-process communi..

3-2. System calls

중앙대학교 3-2 리눅스 응용 설계 (손용석 교수님) 과목 정리입니다. Processor Modes The OS must restrict what a user process can do What instructions can execute What portions of the address space are accessible Supervisor mode (Kernel Mode) instruction set의 어떤 instruction이든 실행 가능 processor 중지, mode bit 변경, I/O 초기화 system의 어떤 memory location이든 접근 가능 OS address space의 code & data User Mode Restricted capabilities privileged..