home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!sh.wide!ascwide!ascgw!gctgw!dave
- From: dave@gctech.co.jp (Dave)
- Subject: How to broadcast messages to processes?
- Message-ID: <DAVE.92Nov12212434@gctgw.gctech.co.jp>
- Sender: news@gctech.co.jp
- Organization: GC Technology
- Distribution: comp
- Date: Thu, 12 Nov 1992 12:24:34 GMT
- Lines: 30
-
- Howdy net,
-
- I'm trying to set up a package where processes (compiled C programs) can
- send each other public messages. I've been studying my RISC/os
- Programmer's Guide, and have got through messages and pipes, and so far it
- looks like there aren't any real broadcast tools.
-
- I mean, when you set up a pipe or a message queue, you can make it so that
- any process can read it. But when a single process reads the queue, that
- amount of read info goes away, and other processes won't be able to read
- it. At least, that's what I gathered from the manual.
-
- What I want to do is have a mesage readable by all processes, as many
- times as they want. I only want messages to get deleted when the channel
- goes away.
-
- I figured that I could do this with message queues by having the reading
- process re-send the exact same message it just read, so that it is in
- effect not removed from the queue. But this has the problem that there is
- a finite amount of time between the read and the re-post in which the
- message does not exist on the queue. And my hawkish little processes are
- sure to get hung up on that delay.
-
- Can somebody point me in a broadcast direction?
-
- TIA,
- Dave
- ----
- David Wuertele, GC Technologies, Algorithm Research
- dave@gctech.co.jp dave@windsor.iis.u-tokyo.ac.jp
-