comp.lang.ada
 help / color / mirror / Atom feed
From: "W. Wesley Groleau (Wes)" <wwgrol@PSESERV3.FW.HAC.COM>
Subject: Re: Uninterruptible (atomic) operation?
Date: 1996/12/09
Date: 1996-12-09T00:00:00+00:00	[thread overview]
Message-ID: <9612091326.AA04263@most> (raw)


:>  wwgrol> Can someone tell me the names if they exist of
:>  wwgrol> system calls to "hog the CPU" for a short time and release it.
:>
:> There are none (in general).
:>
:> Shared memory is only for use with *cooperating* processes. That is, you
:> know damn well all the processes are using the semaphore, because you wrote
:> them all. That's how it's done.

OK, let's put it another way:  The shared memory is updated only rarely,
but the reads are very frequent.  One of the processes reads it so often
that folks are concerned about the overhead.  The value they're reading
is used for communications timings.  If the writing process can "hog" the
cpu for the five to ten machine instructions necessary to do the writes,
then everyone else can "trust" the atomicity of the values.

(And if we used Ada-95 we could use pragma Atomic.)

(And if wishes were horses...)

---------------------------------------------------------------------------
W. Wesley Groleau (Wes)                                Office: 219-429-4923
Hughes Defense Communications (MS 10-40)                 Home: 219-471-7206
Fort Wayne,  IN   46808                  (Unix): wwgrol@pseserv3.fw.hac.com
---------------------------------------------------------------------------




             reply	other threads:[~1996-12-09  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-09  0:00 W. Wesley Groleau (Wes) [this message]
1996-12-09  0:00 ` Uninterruptible (atomic) operation? Robert A Duff
1996-12-10  0:00   ` Bob Gilbert
1996-12-11  0:00   ` Robert I. Eachus
1996-12-11  0:00     ` Robert S. White
  -- strict thread matches above, loose matches on Subject: below --
1996-12-11  0:00 W. Wesley Groleau (Wes)
1996-12-09  0:00 ` John McCabe
1996-12-13  0:00   ` Robert Dewar
1996-12-12  0:00 ` Robert Dewar
1996-12-13  0:00 ` J-P. Rosen
1996-12-13  0:00 ` Robert I. Eachus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox