티스토리 뷰
[ 2-1. Oprerating-System Service ]
- 운영체제는 프로그램과 사용자에게 프로그램 실행환경과 서비스 제공.
더보기

▶ OS 서비스

- 사용자 인터페이스 (UI)
- 프로그램 수행 (메모리에 load)
- I/O(입출력) 연산
- 파일시스템 조작
- 통신 (Communication)
- 오류 탐지
- 자원할당(동시에 수행될 때) : 사용자보다는 resource sharing 통해 시스템의 효율적 동작 보장
- Logging
- 보호와 보안
[ 2-2. User & OS Interface ]
- CLI(Command Line Interpreter) : 명령어 해석기, "셸"
- GUI(User OS Interface): 데스크탑(마우스 o), 스마트폰 or 태블릿(터치스크린 인터페이스 so, 마우스 x)
[ 2-3. System Call ]
- 사용자 프로그램이 OS서비스 이용위해 사용하는 System Call
- 직접 시스템콜을 사용하기 보다는 API통해 엑세스하는 방식: API는 시스템콜 구현 및 작업을 알 필요가 없다. API 준수하고 결과로서 OS가 무엇을 할지 파악하면 된다.
- Trap: 커널코드, SW인터럽트 / Trap table, handler
- System Call number : in a register, 각 시스템콜마다 배정
- EX) 파일복사프로그램: 파일 오픈, 생성
- 함수호출은 해당 함수로 jump 하지만, 시스템콜은 커널코드(trap handler)로 jump
- 시스템콜 arguments를 OS로 전달하는 방법
① 레지스터로 전달(가장 단순) |
② arguments를 메모리 내 block 저장 후 해당 block address를 레지스터 통해 전달 |
③ arguments를 스택에 push, 커널이 직접 pop |
- System Call Types
① 프로세스 제어 (process control) |
② 파일 조작 (file management |
③ 장치 조작 (device management) |
④ 정보 유지 (information maintenance) |
⑤ 통신 (communication) : Message passing model, Shared memory model |
⑥ 보호 (protection) |
[ 2-4. System Programs ]
≠ System call(커널코드)
- User Program : OS 대부분의 사용자 정의는 시스템콜보다 "시스템 프로그램"에 가까움
- System Program: 프로그램 개발과 실행에 편리한 환경
- 분류: 파일관리, 상태정보, 파일변경, 프로그래밍언어 지원, 프로그램 load와 실행, 통신, 백그라운드 서비스, application program
[ 2-5. Linkers and Loaders ]
- relocatable object file
- DLL (동적)
Linker: single binary exectable file ( 단일 실행 파일 )
Loader: relocation, 메모리 주소
[ 2-6. Why Applications are OS specific ]
- 운영체제는 각각 각자의 고유한 시스템을 제공한다.
- Not executable on other OS
→ 크로스 컴파일 이용
'운영체제' 카테고리의 다른 글
13. File System (0) | 2024.06.20 |
---|---|
12. I/O Device (0) | 2024.06.19 |
9. Main Memory (1) | 2024.06.14 |
8. Deadlocks - Concurrency problems (1) | 2024.06.14 |
6. Synchronization (0) | 2024.06.12 |