본문 바로가기

Study/운영체제21

3. Processes - Overview 1. Process Process : 실행중인 프로그램 + 자원 2. Process State New : 새로 만들기 Running : 실행중 (프로세서에서 한 번에 하나의 프로세스만 실행할 수 있음) , cpu에 올라가서 돈다. Ready : 프로세서에 할당되기를 기다리는 중 Waiting : 일부 이벤트가 발생하기를 기다리는 중 (sleep) Terminated 3. Ready/Running State 4. Process Control Block (PCB) OS는 PCB를 사용하여 프로세스를 관리 Process Control Block (PCB): 프로세스와 관련된 정보 저장 2023. 4. 11.
2. Operating System Structures - Interfaces for users and programmers 1.Programming Interfaces System calls : interrupt를 통해 제공되는 Primitive programming interface(원시 프로그래밍 인터페이스) System-call interface : program language - OS 연결 Ex) open(), close(),의 구현 Example) POSIX I/O 시스템 호출 (declared in unistd.h) int open(const char *pathname, int flags, mode_t mode); int close(int fd); ssize_t read(int fd, void *buf, size_t count); ssize_t write(int fd, const void *buf, size_t .. 2023. 4. 11.
2. Operating System Structures - Operating-system services 1. Operating System Services 사용자를 위한 서비스 : User interface , Program execution , I/O operation, File-system manipulation , Communications ,Error detection 시스템 자체의 효율적인 운영을 위한 기능 : Resource allocation, Logging, Protection and security 2.Operating-System User Interface Command-line interpreter (CLI) : 사용자 지정 명령 가져오기 및 실행 Ex) UNIX shell, MS-DOS Prompt Popular CLI terminals : putty, xterm, MacOS term.. 2023. 4. 11.
1. Introduction - Core components of OS Process management Memory management Storage management Protection and security 1.Process Management Process : 실행 중인 프로그램(활성 엔티티) Job, time-shared program 필요한 리소스가 있는 Active program (Ex ) PC에서 실행되는 word-processor) Single threaded process에는 program counter가 있다. Unit of work(작업단위) 운영 체제 프로세스, 사용자 프로세스 Terminologies similar to process Thread: 프로그램이 두 개 이상의 동시 실행 작업으로 분할되는 방법 CPU utilization의 기본단위 p.. 2023. 4. 11.