OS_14_1_I/O Devices and Operations

saewoohan·2023년 7월 28일
0

OS

목록 보기
16/19
post-thumbnail

OS_14_1_I/O Devices and Operations

1. Character Devices

1) CPU Execution and I/O

  • computer의 2개의 주요한 일
    • CPU execution
    • Input/Output
  • 보통 main job은 I/O
    • CPU execution은 부수적이다.

2) Variety of I/O Devices

  • 컴퓨터는 다양한 I/O 장치들이 탑재되어 있다.
    • VGA card, network card, disk controller, …
  • Character devices(mouse, terminal, etc)
    • get과 put 명령
  • Block devices (disk drive, flash drive, etc) → character들이 모인 block 단위이다.
    • 명령은 read, write and sekk
    • Raw I/O 또는 file-system 접근
    • Memory-mapped file I/O 접근도 가능하다.
      • mmap() function : 편리한 프로그래밍 인터페이스
      • mmap 은 단일 복사 작업 때문에 read보다 빠르다.
  • Network devices
    • NIC (network interface card)

2. Block Devices

📢 생략

3. Network Devices

📢 생략

4. Clocks and Timers

📢 생략

0개의 댓글