LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2009, 04:49 AM   #1
netrak
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
buffered and unbuffered i/o


What is the difference between buffered and unbuffered I/O and can anybody show me a sample C code using both buffered and unbuffered I/0 and pointing out the difference. I have looked through many resources and I don't know where to start.Thanks.
 
Old 09-18-2009, 06:58 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by netrak View Post
What is the difference between buffered and unbuffered I/O and can anybody show me a sample C code using both buffered and unbuffered I/0 and pointing out the difference. I have looked through many resources and I don't know where to start.Thanks.
Buffered I/O reads blocks of data at once. Unbuffered I/O reads a byte at a time. Buffered I/O is faster for large transactions, unbuffered I/O is more appropriate to interactive transactions like telnet etc..

Try Google for more information:

Google: "BUffered I/O"
 
Old 09-18-2009, 07:04 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by netrak View Post
What is the difference between buffered and unbuffered I/O and can anybody show me a sample C code using both buffered and unbuffered I/0 and pointing out the difference. I have looked through many resources and I don't know where to start.Thanks.
This sounds a bit like homework....if you tell us the context of the question, it might be easier to help. Also, specifically what resources have you looked at?-----e.g. have you checked Wikipedia?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Commands to access unbuffered device? Ashfaque_21 Linux - Hardware 1 03-19-2009 01:30 PM
unbuffered stdin Mike Davies Linux - Software 1 03-03-2006 01:13 AM
buffered I/O greghua Programming 5 10-18-2005 10:00 AM
Unbuffered Block Device rtg Linux - Hardware 2 09-02-2005 07:50 AM
unbuffered stdin mvt Programming 7 05-17-2004 10:40 PM


All times are GMT -5. The time now is 10:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration