What is the main purpose of Direct Memory Access (DMA) in computer systems?

Direct Memory Access (DMA) is a feature of computer systems that enables peripherals to directly transfer data to and from the system’s memory without requiring CPU involvement. The primary advantage of using DMA is that it allows the CPU to be idle and perform other tasks while data transfer occurs directly between I/O devices and memory, thereby improving overall system efficiency.