Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


differentiate between named & unnamed pipe.

Answers were Sorted based on User's Feedback



differentiate between named & unnamed pipe...

Answer / sri

Unnamed pipe:
1) These are created by the shell automatically.
2) They exists in the kernel.
3) They can not be accesses by any process, including the
process that creates it.
4) They are opened at the time of creation only.
5) They are unidirectional.

Named Pipe:( also called FIFO, First In FIrst Out)
1) They are created programatically using the command mkfifo.
2) They exists in the file system with a given file name.
3) They can be viewed and accessed by any two un-related
processes. ls cmd shows "p" in the permission bits for a
named pipe.
4) They are not opened while creation.
5) They are Bi-directinoal.

6) A process writing a named pipe blocks until there is a
process that reads that data.
7) Broken pipe error occurs when the writing process closes
the named pipe while another reading process reads it.

Is This Answer Correct ?    173 Yes 21 No

differentiate between named & unnamed pipe...

Answer / ramprasad g

named pipe ( is commonly known as FIFO) can be used between
2 totally unrelated processes to communicate.

however pipes cannot be used by process that don't have some
common ancestry (eg parent-child).

Is This Answer Correct ?    128 Yes 13 No

differentiate between named & unnamed pipe...

Answer / rama

Named Pipes will still exist even after the process which
create the named pipe exit

Is This Answer Correct ?    80 Yes 19 No

differentiate between named & unnamed pipe...

Answer / vidya

1. Unnamed pipe: Which is what the shell uses to pipe data
between
processes
2. Named pipe: Allows two independent processes to find the pipe

Is This Answer Correct ?    44 Yes 4 No

differentiate between named & unnamed pipe...

Answer / ankit shah

- Pipes are opened while it is being created and named pipes are first created and then opened for writing and reading by the process.

Is This Answer Correct ?    40 Yes 5 No

differentiate between named & unnamed pipe...

Answer / k. jagan

Named pipe:It has only one fd(file descriptor returned by
open() function).

unnamed pipe:It has two fds(file descriptor returned by
system call pipe(),i.e p[0] for read and p[1] for write).

Is This Answer Correct ?    39 Yes 11 No

differentiate between named & unnamed pipe...

Answer / zee

PIPE : PIPE IS AN INTER PROCESS COMMUNICATION.
PIPE IS NOTHING BUT PASSING INFORMATION FROM ONE
PROCESS PROGRAM TO ANOTHER PROCESS.
PIPE CONSISTS OF TWO TYPES
NAMED PIPE
UNNAMED PIPE

NAMED PIPE:NAMED PIPE IS AN UNRELATED PROCESS
NAMED PIPE USES FIFO OPERATION
IT IS CREATED BY USING mkfifo
IT IS BIDIRECTIONAL
IT EXISTS IN FILE SYSTEM WITH A GIVEN FILE NAME

UNNAMED PIPE:UNNAMED PIPE IS A RELATED PROCESS
IT IS CREATED BY SHELL AUTOMATICALLY
IT IS UNIDIRECTIONAL
IT EXISTS IN KERNAL

Is This Answer Correct ?    25 Yes 4 No

differentiate between named & unnamed pipe...

Answer / the named one

http://www.cs.fredonia.edu/zubairi/s2k2/csit431/pipes.html
go to this link and then you can see the unnamed and named
pipes both given properly.
Unnamed pipes can be bidirectional or unidirectional both
ways . In previous Unix systems it was unidirectional that's
why it used to return two pointers but in New it is
bidirectional so it returns a pointer.

Is This Answer Correct ?    9 Yes 4 No

differentiate between named & unnamed pipe...

Answer / vasanth

unnamed pipe:
1)pipe is an ipc mechanism which is not having any name will be referred by the discriptors one for writing and another for reading.
2)pipe is created using pipe function.
int pipe(int filedes[2]);
3)communication between related processes.
4)it has only one fd.
5)unidirectional.
named pipe:
1)fifo is an ipc mechanism it can be said as named pipe.
2)fifo is created using mkfifo.
int mkfifo(const char *pathnam,mode_t mode);
3)communication between any two processes.
4)it has only two fd.
5)biidirectional.

Is This Answer Correct ?    13 Yes 13 No

differentiate between named & unnamed pipe...

Answer / jhsjksk

NAMED PIPE:A pipe whose name exist in the file system.
unnamed pipe:it does not contain any name.

Is This Answer Correct ?    7 Yes 12 No

Post New Answer

More Unix AllOther Interview Questions

What is YACC?

0 Answers   Cisco,


What are Profilers?

1 Answers   Axis Technologies,


in unix profile contains

1 Answers   BFL,


which is the best book for learning unix and linux?

6 Answers  


What do you mean by nice value?

4 Answers  


what is difference between kernel and shell?

18 Answers   Juniper Networks,


What is mean by Mac os? Why it is named as like that? Which purprose it is using? Please answer me. Advance thanks.

2 Answers   Excel, GeniusPort,


What scripting languages do you know?

1 Answers  


If Media Server fails. What are the steps to be followed? Can anyone please reply for this question Thanks, Ganesh

0 Answers   HCL, IBM,


How to list only the directories inside a directory?

4 Answers  


What is Fork swap?

1 Answers   Infosys, SSI Small Scale Industries,


in unix how to change old name to new name

5 Answers  


Categories