Nameed pipes Vs sockets

P

Palaniappan

Hi all,
Now i am using two named pipes for Inter Process communication (IPC).
will i get speed advantage if i use sockets ?.
which one is best for perl IPC ?
anybody analyzed this earlier in perl ?

Thanks in advance,
palani
 
B

Ben Morrow

Quoth (e-mail address removed) (Palaniappan):
Hi all,
Now i am using two named pipes for Inter Process communication (IPC).
will i get speed advantage if i use sockets ?.

Benchmark it and see. Which is faster almost certainly depends
critically on your OS.
which one is best for perl IPC ?

They are different... with sockets, you get one filehandle for full
duplex communication, and you get proper connection handling; OTOH, you
have to mess with accepting connections. With fifos you can just open
them and get on with it, OTOH so can someone else and make a right mess
of your data. INET-domain sockets are also far more portable than either
fifos or Unix-domain sockets.

Decide based on your program's needs, rather than on some ficticious
idea that one approach will be significantly more performant than the
other.

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,167
Latest member
SusanaSwan
Top