![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX Desktop for Dummies Questions & Answers Discuss UNIX and Linux user interfaces like GNOME, KDE, CDE, and Open Office here. All UNIX and Linux Newbies Welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to make a line BLINKING in output and also how to increase font size in output | mail2sant | Shell Programming and Scripting | 3 | 04-14-2008 07:30 AM |
| changing col(1) command stdout as fully buffered? | sunilsbjoshi | High Level Programming | 1 | 06-09-2006 07:09 AM |
| changing col(1) command stdout as fully buffered? | sunilsbjoshi | HP-UX | 0 | 06-09-2006 06:36 AM |
| changing col(1) command stdout as fully buffered? | sunilsbjoshi | UNIX for Advanced & Expert Users | 0 | 06-09-2006 05:45 AM |
| Help capturing and reformatting buffered and unbuffered output | vikingshelmut | Shell Programming and Scripting | 0 | 09-27-2005 02:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I don't know what a "standard exchange buffer in Windows" is but it seriously sounds like it's not at all the same thing.
With input/output buffering you have a cache of sorts between two devices. Say, a disk: the driver reads a sector of data into a buffer, then passes it to the program which displays it. You can not read a partial sector from the disk; at end of file, you get a partially filled buffer, and a flag which tells you how much of it is actually real data. Line buffering works on lines instead of disk sectors. Line buffered I/O reads through the next newline, then passes on the buffer. By running tail -f on a file which is slowly being written by another program, you can see block buffering in action. The output pauses in the middle of a line, then all of a sudden, after a longish wait, you get another burst of text as another buffer of multiple lines of output is completed and written out to disk (and then read and displayed by tail). cat -u prevents this behavior, and forces unbuffered output even if the output device would call for block-buffered or line-buffered output. Unbuffered output is much less efficient, so unless you really need unbuffered output, go for buffered. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|