-
CPU의 메모리 접근 구조Computer Engineering/운영체제 2022. 10. 28. 18:29
메모리의 계층 구조
CPU의 메모리 접근 구조
인터럽트 ( Interrupt ) 와 폴링 ( Polling )
- 인터럽트 : 입출력 관리자가 대신 입출력을 해주는 방식
- CPU의 작업과 저장장치의 데이터 이동이 독립적
- 데이터의 입출력이 이루어지는 동안 CPU는 다른 작업 가능
- 동기적 인터럽트 : 프로세스나 운영체제 상의 문제로 발생 ex) 0으로 나누기, 다른 메모리 영역 침범,,
- 비동기적 인터럽트 : 하드웨어적 오류로 발생 ex) 키보드 인터럽트, 마우스 인터럽트
- 폴링 : CPU가 직접 입출력을 담당
- CPU가 입출력 장치의 상태를 주기적으로 확인 및 작업
- CPU의 작업 효율이 떨어짐
직접 메모리 접근 ( DIrect Memory Access, DMA )
- 입출력 관리자가 CPU와 독립적으로 메모리에 접근
프로그램 입출력 ( Programmed I / O, PIO )
- 저장장치와 주변 기기가 CPU와 데이터를 주고받는 방식
메모리 매핑 입출력 ( Memory Mapped I / O, MMIO )
- 메모리의 일정 공간을 입출력에 할당하는 방법
- 입출력 장치의 메모리 주소가 나뉘어 있지 않고 메모리와 같은 주소공간이어서 기계어 코드로 수행
더보기참고문헌
조성호 저, 「쉽게 배우는 운영체제」, 한빛아카데미, 2018, 616p
https://ko.wikipedia.org/wiki/%EC%9D%B8%ED%84%B0%EB%9F%BD%ED%8A%B8
https://homoefficio.github.io/2020/04/09/Java-Native-Memory-Tracking/
⊙ 이 글은 개인 공부를 목적으로 작성된 글입니다.
⊙ 내용에 대한 오류나 피드백 감사히 받고 있습니다 !
반응형'Computer Engineering > 운영체제' 카테고리의 다른 글
프로세스와 스레드 (0) 2022.10.31 병렬 처리의 개념 (0) 2022.10.31 컴퓨터 메모리, 버퍼, 스풀, 캐시 (0) 2022.10.28 컴퓨터의 기본 구성과 폰노이만 구조 (0) 2022.10.28 운영체제란 ? (0) 2022.10.25 - 인터럽트 : 입출력 관리자가 대신 입출력을 해주는 방식