?
Solved

Explaining Stream Head on I/O Multiplexors

Posted on 2000-05-02
5
Medium Priority
?
245 Views
Last Modified: 2010-04-21
i'm an software engineer at NEC right now I'm studying System V network programming..but i'm currently having a problem on the I/O multiplexors..especially on the stream head can anyone give me a brief description, example and explainatio about the concept of stream head?
0
Comment
Question by:misguided
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
dgrimes earned 400 total points
ID: 2788638
This is from the SCO OpenServer Performance Guide:

The STREAMS I/O system was designed to provide a simultaneous two-way (full duplex) connection between a process running in user space and a device driver (or pseudo-device driver) linked into the kernel. The topmost level within the kernel with which the user process communicates is known as the stream head.

Using STREAMS has the advantage that it allows the processing of I/O between an application and a device driver to be divided into a number of functionally distinct layers such as those required by network architectures that implement TCP/IP or the Open Systems Interconnection (OSI) 7-layer model.

The Streams I/O mechanism is based on the flow of messages from the stream head to a device driver, and in the oposite direction, from the device driver to the stream head. Messages that are passed away from the stream head toward the driver are seaid to be traveling downstream; messages going in the opposite direction are traveling upstream. Between the stream head and the driver, there may be a number of stream modules which process messages in addition to passing them to the next module.

--------------------


There is quite a bit more but this is the brief description of the STREAMS I/O system. Hope it helps.

dgrimes
0
 

Author Comment

by:misguided
ID: 2791951
dgrime,
    mmmmm...i think i got it..well basically..it is just one way of communicating with devices using drivers....i got that from a book..well i guess the only way for me to understand it better is to make one right??..thanx anyway..
0
 
LVL 2

Expert Comment

by:dgrimes
ID: 2792586
If you wanted more information all you had to do was ask! I would have been more than happy to give all that I have. I thought you wanted a brief description. Also, if an answer given is not what you wanted then you should reject it or request clarification.

Most of the information I have and most of I have learned came for one book or another at one time or another.

If you want, I will have the points posted back to you and you can repost the question. I have no problem with doing this.

Let me know

dgrimes
0
 

Author Comment

by:misguided
ID: 2796071
no it's alright..:) i appreciate it..really..that answer was good.btw could i email you??:) maybe exchange of ideas? thanx..
0
 
LVL 2

Expert Comment

by:dgrimes
ID: 2796241
Sure ... my email is dgrimes@scvl.com. BTW, I do have some diagrams in this book and quite a bit more description on streams. But ... SCO has a pretty good documentation set that has all of this and more. It's at www.sco.com and just follow the links. There is a pretty good walk through of the logic complete with flowcharts.

dgrimes
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

719 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