Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the difference in buffered and non-buffered I/O ?

Status
Not open for further replies.

davyzhu

Advanced Member level 1
Joined
May 23, 2004
Messages
494
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,298
Location
oriental
Activity points
4,436
Buffered I/O read/write?

Hi all,

What's difference with buffered I/O and non-buffered I/O?
Is buffered I/O means:
Code:
[I/O bridge] <--> [CPU] <--> [SDRAM] <--> [CPU]
And non-buffered I/O means:
Code:
[I/O bridge] <--> [CPU]

Any suggestions will be appreciated!
Best regards,
Davy
 

Buffered I/O read/write?

In OS it is applied to input output streams . Writing to stream does not mean its immediate output to destination - data will be stored in stream buffer . but it is possible to order output by running flush() on that stream resulted in immediate output of data to its destination (file or console). It is done to optimize input output process to use less access hardware which is not sometimes immediately available. Let say hard drive head must be repositioned to correct sector and track and if it will be done on byte basis this will reduce speed of other applications trying to access that hard disk . Instead data is collected into blocks and block write is happened which replaces numerous byte writes by block write reducing harddisk head movements . Similar processes could take place on other than harddisk hardware as well.
 

    davyzhu

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top