unix process

Posted on 2002-04-03
Last Modified: 2013-12-06
All I/O in a Unix system is stream-oriented rather than record oriented as it is in most other Systems. what is the advantages and disadvantages of this approach?
Question by:spdevassy
LVL 51

Expert Comment

ID: 6917482
imagine your record size is 2MB, and you send one single byte

Expert Comment

ID: 6921588
you don't have to define the record structure in advance.
you have 'free formatted' data in the files. Your application determine the file layout and not the OS. Although not directly related maximum files most not be known in advance (as on some record oriented systems).

Expert Comment

ID: 7068356
programs in unix system  have no knowlege of intrenal format in which kernel stores the data .treating file as stream of bytes,program may iterpret stream of bytes as they want for example the text formatting program "troff" expects to find a new line charater at end of each line while system accounting software  expets to find fixed lenth record  .both programs use same sysytem  services to acess the data in the file as a byte stream and iternally ,they parse the stream into suitable format,
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Expert Comment

ID: 7102569
I believe stream I/O in OS is a lower level processing which make use of its features of block I/O or raw I/O to maximise the throughput and at the same time maintain the flexibility and scalability.  While Applications such as Oracle do recognise its data in terms of records to maintain data integrity and ease of operation, it still needs lower-level OS I/O to support this application-level operation through system call.
LVL 20

Expert Comment

ID: 7621399
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- PAQ & remove points

Please leave any comments here before 13/1/2003


tfewster (I don't work here, I'm just an Expert :-)

Accepted Solution

SpideyMod earned 0 total points
ID: 7805284
per recommendation

Community Support Moderator @Experts Exchange

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question