pipes inside


 
Thread Tools Search this Thread
Top Forums Programming pipes inside
# 1  
Old 04-06-2005
pipes inside

Extremely need to understand some aspects of pipes realization. The main question is in which memory are pipes placed?
# 2  
Old 04-06-2005
pipes are files - so the data is on disk.

Since pipes are files the descriptor lives in process memory space. What are you trying to figure out?
# 3  
Old 04-06-2005
Originally, pipes were implemented with the file system. Even then, they would be in the buffer cache and flushed to disk only if buffer cache pressure was high. These old pipes were one way only. I don't think any current Unix system still does this. BSD switched to socket based pipes. After System 5 got Streams, it switched to Streams based pipes. Both of these are bidirectional.
# 4  
Old 04-06-2005
The system is Solaris 10.
What about streams? As I know pipes physically are cycled arrays of bytes. I have to figure out where are these arrays situated.
# 5  
Old 04-06-2005
What is the impetus for your question?

Its such a specific question, I am curious what your original train of thought was. Not trying to pry too much, but I am curious. You didnt really say what it was in reference to.

Are you interested in the internal workings of Unix? I am also curious from time to time how things work and where they live on my boxes. And in what order things happen "behind the scenes"...
# 6  
Old 04-06-2005
What is the impetus for your question? I think, you'd better ask "Who is the impetus for your question?" Smilie
I have an university course called "Operating systems", and he is my teacher Smilie Don't think I was born so curious. My study made me such I am Smilie
# 7  
Old 04-06-2005
Well in that case I must call your attention to our rules, which state:
(6) Do not post classroom or homework problems.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Renumber position 88-94 inside all files matching criteria inside folder

There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data Here is the Code which find the files matching criteria:- TS=`date +"%m-%d-%Y"`| for fname in `find . -name "ABCJmdmfbsjop???????_${TS}*.data"` do # Matching File Processing Code.... (1 Reply)
Discussion started by: lancesunny
1 Replies

2. Programming

Question on pipes in C

If a code forks 2 childs, what can the values be for the process id's of each of the child? I child pid is supposed to be 0, but what if you fork 2 of them? (5 Replies)
Discussion started by: omega666
5 Replies

3. Programming

Problem with pipes

problem solved. (1 Reply)
Discussion started by: superfons
1 Replies

4. Programming

Pipes in C

Hello all, I am trying to learn more about programming Unix pipes in C. I have created a pipe that does od -bc < myfile | head Now, I am trying to create od -bc < myfile | head | wc Here is my code, and I know I might be off, thats why I am here so I can get some clarification. #include... (1 Reply)
Discussion started by: petrca
1 Replies

5. UNIX for Dummies Questions & Answers

learning about pipes!

im trying to figure out how to do the following: using pipes to combine grep and find commands to print all lines in files that start with the letter f in the current directory that contain the word "test" for example? again using pipes to combine grep and find command, how can I print all... (1 Reply)
Discussion started by: ez45
1 Replies

6. UNIX for Advanced & Expert Users

broken pipes

A broken pipe means that you are writing onto a pipe that has been closed by the other end. i have unix batch which forks some process and these processes are communicating each other via pipes. but sometimes i got too many broken pipe error. how can i search for the cause of these errors,... (1 Reply)
Discussion started by: yakari
1 Replies

7. Shell Programming and Scripting

looping a array inside inside ssh is not working, pls help

set -A arr a1 a2 a3 a4 # START ssh -xq $Server1 -l $Username /usr/bin/ksh <<-EOS integer j=0 for loop in ${arr} do printf "array - ${arr}\n" (( j = j + 1 )) j=`expr j+1` done EOS # END ========= this is not giving me correct output. I... (5 Replies)
Discussion started by: reldb
5 Replies

8. Shell Programming and Scripting

doubt about pipes

can we use pipes to redirect the output of any command to grep ..... like i wanted to write this script about checking the online status of a certain user so ...can i send the output of who to grep directly using pipes... one way was this : who > temp grep $uname temp i was wondering if... (4 Replies)
Discussion started by: evergreen_cool
4 Replies

9. Shell Programming and Scripting

cd using pipes

Hi, Can the cd command be invoked using pipes??? My actual question is slightly different. I am trying to run an executable from different folders and the path of these folders are obtained dynamically from the front end. Is there a way in which i can actually run the executable... (2 Replies)
Discussion started by: Sinbad
2 Replies

10. Filesystems, Disks and Memory

PIPEs and Named PIPEs (FIFO) Buffer size

Hello! How I can increase or decrease predefined pipe buffer size? System FreeBSD 4.9 and RedHat Linux 9.0 Thanks! (1 Reply)
Discussion started by: Jus
1 Replies
Login or Register to Ask a Question