wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Direct Memory Access

profile
Jay Bhanushali
Jul 04, 2024
0 Likes
0 Discussions
133 Reads

In the field of input/output (I/O) operations in computing systems, there are several methods to control the interface between the processor and peripheral devices. These methods—programmed I/O, interrupt-driven I/O, and direct memory access (DMA)—each have their own benefits and disadvantages.
Programmed I/O is the most basic method. In instances where the I/O module encounters an I/O instruction, the processor ends it through direct communication with it. The module performs the requested task and updated its status register but does not interrupt the processor. Instead, the processor must actively poll the module to check if the operation has finished. This polling can lead to significant performance degradation since the processor essentially waits idly during this period.

In the situation where the transfer of data of large volumes is involved, DMA is by far the best option.
DMA, the processor is allowed to pass off the transfer of data tasks to a specific DMA module.
Let’s dig into it a bit more if you don’t mind: The processor begins the transfer by giving the parameters such as the operation type (read-write), the device address, the memory location, and the data size to the DMA module. Once set up, the bus is taken over by the DMA module and memory is directly interfaced with the I/O devices without the processor involvement at each data word. This way significantly saves the processor's time and data is transferred much faster.

However, DMA may have some disadvantages. When the DMA module and the processor compete for bus access, there are situations when the processor may have to pause for a while to get the bus. This is a kind of intertemporal pause, and it takes place only on rare occasions due to DMA, which, by the way, remains much better as compared to programmed and interrupt-driven I/O methods in data handling.
As is clear from the above paragraph, among the three mentioned data transfer methods, the direct memory access (DMA) technique comes with the least workload to the CPU and hence is the most effective. By making memory to I/O transfers request in a very fast time, the DMA sends out information that the computer principle memory has been doing the same. This process makes the CPU to focus on other tasks than data transfer hence achieving high overall system efficiency.


Comments ()


Sign in

Read Next

Satellite Based Positioning

Blog banner

Data Visualization in Decision-Making

Blog banner

Understanding Gen Z: A Generation Facing Crisis and Potential

Blog banner

GIS REMOTE SENSING

Blog banner

Types of E-Commerce

Blog banner

Paginng In OS

Blog banner

Operating System

Blog banner

Having passion in life

Blog banner

Dal Bafla Recipe

Blog banner

How To Invest In Indian Stock Market @ BSE & NSE ~ Tutorial 3

Blog banner

SPAM

Blog banner

Firewall

Blog banner

"Geographic Information Systems (GIS) and its Applications in Urban Planning"

Blog banner

Outlook mail

Blog banner

What Makes Patola the Queen of Silk?

Blog banner

Virtual Memory

Blog banner

Visualization in Data Science

Blog banner

My Favorite Sportsperson

Blog banner

Functions of operating system

Blog banner

Reclaim Your Bite and Beauty: All About Dental Restorative Treatments

Blog banner

Memory input output management

Blog banner

Data Mapping

Blog banner

IS CONVERTING AMBITION INTO PROFESSION?

Blog banner

What is time ? The term which has astonished Scientists

Blog banner

Data Science in Everyday Life (like a phone, shopping cart, or social media icons)

Blog banner

How to kiss

Blog banner

10 Interesting Facts about Death Note

Blog banner

Concurrency and memory

Blog banner

How to Avoid being a Victim of Cybercrime

Blog banner

Deadlock and Starvation

Blog banner

Article on Team Work

Blog banner

5 People who claimed to have Time Traveled

Blog banner

**THE MUJAWARR: Transforming the Logistics Industry**

Blog banner

A little bit of salt is all the hash needs!

Blog banner

Amazon

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

Artical on FreshBooks

Blog banner

Music

Blog banner

VPN

Blog banner

Introduction to Data Science: Life Cycle & Applications

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Why is online marketing is important in current scenario

Blog banner