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

Deadlock

Blog banner

Types of email

Blog banner

What are the different types of E-mail crime and process of email forensic?

Blog banner

Fault Tolerance

Blog banner

Understanding Regression Analysis

Blog banner

Operating system

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

How Do I Get Rid of My People-Pleasing Behaviour?

Blog banner

TOGETHER WE CAN CONQUER #team

Blog banner

Why we should do reading

Blog banner

Functions of Operating System

Blog banner

Process State

Blog banner

Photorec - media recovery tool

Blog banner

Earth with no trees

Blog banner

POSITIVE ATTITUDE IN LIFE

Blog banner

Power of words

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

Malware Defense

Blog banner

What do you mean by online marketing and why do you need to know about it

Blog banner

Service stratergy principles

Blog banner

A buffer overflow

Blog banner

The Role of Data Provenance and Lineage in Modern Data Science

Blog banner

Animal’s have my heart

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Virtual machine and virtualizing

Blog banner

Blog on health and fitness

Blog banner

CBSE + International Thinking: How Indian Schools Are Producing World-Ready Students

Blog banner

Every body is beautiful

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Threats To Computer System

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

Dangers of Using Public WiFis

Blog banner

Policies for Service Transition

Blog banner

Europe Through My Lens

Blog banner

Zoho

Blog banner

Dos (Denial of service) Attack

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

File Allocation Methods

Blog banner

Supervised and unsupervised learning

Blog banner

E-mail security

Blog banner