473,473 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Interprocess Communication

2 New Member
Hi there!

Not really that well versed with perl and need to implement a "seemingly" complex problem. I need to implement a network of 'x' processes on the same host which should have the ability to communicate with each other and select a "boss process" amongst themselves so as to carry on with further functionality. Failure of the boss would result in an alarm for the rest processes and a new boss would immediately be chosen. Issue here is am not very clear what all to use to set up the network (Sockets?? (but the processes are on the same host!!)) and then how should i make these processes to communicate so as to know each others status??

any suggestions/recommendations there pls..

Shraddha
Aug 15 '07 #1
3 1328
miller
1,089 Recognized Expert Top Contributor
Sockets yes. IPC yes. But there is no quick answer to this.

I suggest that you pick up the book "Network Programming with Perl". Even though it was written in 2001, it still is the most comprehensive book that I've come by for IPC. The nature of this type of coding hasn't really changed much in the intervening 6 years, but it's still a complicated task. And you're going to need study in order to accomplish it.

- Miller
Aug 16 '07 #2
Shraddha Advani
2 New Member
Thankyou for that quick reply!

Going through lotta IPC stuff and finally converged to comparision between POE v/s communication through sockets (Network communication in Perl).

Any idea on what should be preferred for message passing between processes on a network on the same host?

Thx in advance!
Aug 16 '07 #3
miller
1,089 Recognized Expert Top Contributor
There is no definitive answer that I know of.

Even among perl experts, the answer often just evolves around whichever technology the guru is most familiar with or was exposed to first. And even with people who are familar with both technologies, the answer still depends on what your ultimate goal is.

I would personally probably stick with sockets, but that's mostly because I still have less familiarity with POE. So I would advise you to pick whichever looks best to you. I believe they both can accomplish the job.

- Miller
Aug 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jeroen | last post by:
Question, We are in the process of creating a windows service in C#. Another GUI application, also written in C# has to communicate from another machine to this service. What is the best...
7
by: Daniel | last post by:
I search for a good way to communicate between processes. I have a main application(might be more instances) and an tool that should exchange information such as which user is logged in into the...
4
by: Charles Packer | last post by:
I need to do the following simple interprocess communication (IPC) among these processes that are all on the same box: -- A daemon waits for "I'm here" announcements from multiple clients -- One...
5
by: guy | last post by:
In the past I've used sockets in C++ to allow apps to communicate with each other over a local network. Is there anything better/more advanced in .NET or should I continue to use sockets and the...
3
by: James Aguilar | last post by:
Oh wise readers of comp.lang.python, Lend a newbie your ears. I have read several old articles from this group about memory mapping and interprocess communication and have Googled the sh** out...
7
by: Michael Butscher | last post by:
Hi, this is not really Python-specific but I need it for Python. I'm wanting a method for interprocess communication which is OS- independent (sockets would be the normal way to go), but which...
4
by: batista | last post by:
Hello all, I need suggestions and possibly solutions to the problem stated below: I have an application written purely in .NET ( Windows Form Application) and another application that is...
0
by: Murali | last post by:
Hi Python Gurus, I am writing a GUI app (on linux) using pygtk which would launch some external applications and display their stdout and stderr inside the output window of my application...
2
by: Murali | last post by:
Hi Python Gurus, I am writing a GUI app (on linux) using pygtk which would launch some external applications and display their stdout and stderr inside the output window of my application...
3
by: madankarmukta | last post by:
Hi all, I am very new to Implementation of the Interprocess communication.I am trying to implement the concept in c++.I created the pipe using Createnamedpipe() function ,connecting to that pipe...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.