Xref: utzoo comp.unix.questions:29395 comp.unix.wizards:24431 Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!jarthur!uunet!stanford.edu!neon.Stanford.EDU!sidana From: sidana@neon.Stanford.EDU (Ashmeet S Sidana) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Multiprocessing via sockets Message-ID: <1991Mar13.053500.17782@neon.Stanford.EDU> Date: 13 Mar 91 05:35:00 GMT References: <4306@skye.ed.ac.uk> Organization: Computer Science Department, Stanford University, Ca , USA Lines: 21 In article <4306@skye.ed.ac.uk> rbs@bute.ed.aiai (Robert Scott) writes: >I want to generalise the system. I want an unlimited number of machine to >be able to communicate. I can see that on each machine I need to create >an array of sockets of length N (the number of machines) so that each machine >can talk directly to any other. >How do I do this cleanly? If your communication requirements are not too high then you could just communicate through one socket (with everybody listening), whereby the first byte would indicate which machine the message was for (assuming < 255 machines) Of couse you have esentially "sequentialized" all communication here. Note this is != to sequentializing all processing! How much/how frequent is the communication? ---Ashmeet Sidana sidana@cs.stanford.edu Stanford University.