wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

I/O buffer and its techniques

profile
Neeti undefined
Sep 09, 2024
0 Likes
0 Discussions
240 Reads

A buffer is a memory area that stores data being transferred between two devices or between a device and an application. In computer I/O buffering techniques are used to manage transfer of data between memory and I/O devices. This allows the CPU and I/O devices to work at their speeds without having to wait for each other, improving system’s overall performance.

Computers have many different devices that operate at varying speeds, and a buffer is needed to act as a temporary placeholder for everything interacting. This is done to keep everything running efficiently and without issues between all the devices, programs, and processes running at that time.

There are 3 types of buffers in OS:

1.    Single buffer: Using one buffer to store data temporarily. A buffer is provided by the operating system to the system portion of the main memory.

Block oriented device:

·     The system buffer takes the input.

·     After taking the input, the block gets transferred to the user space by the process and then the process requests for another block.

·     Two blocks work simultaneously, when one block of data is processed by the user process, the next block is being read in.

·     OS can swap the processes.

·     OS can record the data of the system buffer to user processes.

Stream oriented device:

·     Line- at a time operation is used for scroll-made terminals. The user inputs one line at a time, with a carriage return signaling at the end of a line.

·     Byte-at-a-time operation is used on forms mode, terminals when each keystroke is significant.

Buffering in Operating System


2.    Double Buffer: In this technique the operating system Uses two buffers to allow continuous data transfer between two process or two devices.

Block oriented:

·     There are two buffers in the system.

·     One buffer is used by the driver or controller to store data while waiting for it to be taken by higher level of the hierarchy.

·     Other buffer is used to store data from the lower level module.

·     Double buffering is also known as buffer swapping.

·     A major disadvantage of double buffering is that the complexity of the process gets increased.

·     If the process performs rapid bursts of I/O, then using double buffering may be deficient.

         Stream Oriented:

·     Line- at a time I/O, the user process need not be suspended for input or output, unless process runs ahead of the double buffer.

·     Byte- at a time operations, double buffer offers no advantage over a single buffer of twice the length.


3.    Circular Buffer: In this technique the OS Uses a circular buffer to manage continuous data streams efficiently.

·     When more than two buffers are used, the collection of buffers is itself referred to as a circular buffer.

·     In this, the data do not directly pass from the producer to the consumer because the data would change due to overwriting of buffers before they had been consumed.

·     The producer can only fill up to buffer i-1 while data in buffer i is waiting to be consumed.


Comments ()


Sign in

Read Next

Mumbai

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

The Future of Web Development in 2026: Trends Every Business Must Know

Blog banner

Who decides your overthinking, anyway?

Blog banner

Deadlock and Starvation in an Operating System

Blog banner

Networking 101: How to Build Meaningful Connections in College

Blog banner

Cloud Technology and its Implications for Entrepreneurship

Blog banner

Annual Day Preparation for Toddlers: What Helps and What to Avoid

Blog banner

Disk Management

Blog banner

Best password managers: Reviews of the top products

Blog banner

Admissions Open: Why This Is the Right Time to Choose the Best School for Your Child

Blog banner

Kernel Memory Allocation In Linux.

Blog banner

Solomon’s Castle: A Quirky Florida Attraction Worth Visiting from Arcadia

Blog banner

Digital Forensics Challenges and Tools

Blog banner

DATA WRANGLING

Blog banner

Yoga in INDIA and ABROAD

Blog banner

Data carving - using hex editor

Blog banner

E-Cash (Electronic Cash)

Blog banner

What is M-commerce and how it's work

Blog banner

Things You Should Leave Behind In 2025, Whilst In 2026

Blog banner

CSI and Organizational Change

Blog banner

Data Mapping

Blog banner

This School Year, Let Their Belongings Come Back Home Too with Our Ultimate Labelling Kit

Blog banner

Multiprocessor and Multicore Organization

Blog banner

Cache memory

Blog banner

Interesting fact about kangaroo.

Blog banner

PROCESS STATES OF OPERATING SYSTEM

Blog banner

How I use google in my daily life

Blog banner

Creating Digitally Signed Document

Blog banner

How to Compare Schools Before an Admission Decision

Blog banner

Raid

Blog banner

Digital black market or dark net poses a national security threat?

Blog banner

IT Service as as Value Creation

Blog banner

How Often Should Your Child Really See the Dentist? (A Parent’s Guide)

Blog banner

WINDOWS I/ O

Blog banner

Understanding Business Layer in Data Science

Blog banner

Deadlocks

Blog banner

Importance of Network Security Risk

Blog banner

Coping with Diagnosis Shock

Blog banner

10 Problems you face if you are an Otaku

Blog banner