home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!uwm.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
- From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
- Newsgroups: comp.lang.c
- Subject: Re: How to broadcast messages to processes?
- Message-ID: <1992Nov12.180705.10602@mksol.dseg.ti.com>
- Date: 12 Nov 92 18:07:05 GMT
- Article-I.D.: mksol.1992Nov12.180705.10602
- References: <DAVE.92Nov12212434@gctgw.gctech.co.jp>
- Distribution: comp
- Organization: Texas Instruments Inc
- Lines: 36
-
- In <DAVE.92Nov12212434@gctgw.gctech.co.jp> dave@gctech.co.jp (Dave) writes:
-
- >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?
-
- Have you considered shared memory? If speed is that critical
- (processes get hung up on the delay in message replacement) it may be
- just what you're looking for.
-
- --
- "Insisting on perfect safety is for people who don't have the balls to live
- in the real world." -- Mary Shafer, NASA Ames Dryden
- ------------------------------------------------------------------------------
- Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
-