From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,f37007e903458d32 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-13 23:21:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!newsfeed-zh.ip-plus.net!news.ip-plus.net!news.post.ch!wceh00wn.pnet.ch From: "Jakob Erber" Newsgroups: comp.unix.tru64 Subject: Re: Inter process communication Date: Tue, 14 May 2002 08:21:52 +0200 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <3ce0ad01$1@news.post.ch> References: <3cdf7e4f$1@news.post.ch> NNTP-Posting-Host: 138.189.120.56 X-Trace: rex.ip-plus.net 1021357312 13660 138.189.120.56 (14 May 2002 06:21:52 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Tue, 14 May 2002 06:21:52 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Original-NNTP-Posting-Host: wceh00wn.pnet.ch X-Original-Trace: 14 May 2002 08:21:53 +0200, wceh00wn.pnet.ch Xref: archiver1.google.com comp.unix.tru64:7647 Hello Nix, thanks for your reply. Please see my answer below: -- What I publish in this group, is to be understood as my personal opninion and must not be interpreted as a official statement of my company "Nikola Milutinovic" schrieb im Newsbeitrag news:abq7s0$d52$1@Mercury.ev.co.yu... > "Jakob Erber" wrote in message > news:3cdf7e4f$1@news.post.ch... > > Hello, > > > > which would be the mechanism of choice to perform the following task: > > > > IPC between 2 processes on the same node, whereby > > - block and noblocking read/write operations should be supported > > - security is not an issue > > - access must be thread safe (one com channel per thread) > > - nice to have: resources are freed, if both com partners go away > > - commication must be fast > > > > What sould be used here? > > - sockets > > - Message Queue services (msg*) > > - named pipes > > - pipes > > All of above are per-process not per-thread. What does "one com channel per > thread" mean? Suppose one process has m threads and the other n threads. > You'd like m*n com channels? How would you identify the thread you want to > talk to? What we have is a multi threaded server process with n working threads, which should spread the workload over n worker single threaded processes. Each work thread should store the comm channel (msgq, socket, pipe ...) in his own thread specific data. So each thread always contacts the same worker process. > > I think there is a conceptual problem here. > > If you are in multithreading domain, I'd opt sor sockets, since they can > easily be expanded to network, too. > > Nix. > >