in reply to Message Passing b/w processes , that works both in windows and Linux
For starters, fork creates a thread (not a process) in Windows. Is that a problem?
I wrote a script to communicate b/w processes bidirectionally using pipes ,but it doesn't work as intended
The script you posted runs on neither linux nor Windows until you fix the issue with reading until a newline is encountered when none is sent. Then, it works fine on both linux and Windows.
Since I need to run the same script in windows,I think I can't use socketpair like below for bidirectional communication rt?
I'm pretty sure you can, but you might have to change from AF_UNIX to AF_INET.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Message Passing b/w processes , that works both in windows and Linux
by shijumic (Novice) on Jun 08, 2009 at 22:45 UTC | |
by tye (Sage) on Jun 09, 2009 at 00:25 UTC | |
by ikegami (Patriarch) on Jun 09, 2009 at 01:24 UTC | |
by tye (Sage) on Jun 09, 2009 at 01:58 UTC | |
by ikegami (Patriarch) on Jun 09, 2009 at 00:10 UTC |