DMA(Direct Memory Access)

최준혁·2024년 10월 22일
0

Operation System

목록 보기
2/3

What is DMA, and why is it needed?

DMA (Direct Memory Access) allows data to be transferred directly between devices (like a hard drive) and memory, without going through the CPU. In simple terms, instead of the CPU handling the task of moving data, DMA takes care of it, so the CPU can focus on other important tasks.

Why is DMA important?

  • Faster processing: Since the CPU doesn't have to move data manually, the system can work faster.
  • Less CPU load: The CPU is free to handle more critical tasks while DMA manages the data transfer.

How DMA works:

  1. A device wants to send data: For example, when a hard drive wants to move data to memory.
  2. The DMA controller takes action: The CPU tells the DMA controller, "Move this data," and the DMA controller starts the process.
  3. DMA transfers data: The DMA controller moves data directly from the hard drive to the memory.
  4. CPU stays focused: While DMA is moving data, the CPU can continue working on other tasks.

reference

profile
Backend Developer

0개의 댓글