comp.lang.ada
 help / color / mirror / Atom feed
* Basic critical sections question
@ 2010-07-03 20:06 usenet
  2010-07-03 21:48 ` John B. Matthews
  2010-07-04  7:58 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 3+ messages in thread
From: usenet @ 2010-07-03 20:06 UTC (permalink / raw)


Suppose I have a multi-tasking system where different tasks may
execute a sequence like

  P1(A,B);
  P2(C,D);
  P3(E,F);

and I want to make this sequence a critical section.  What is the
typical Ada way to do this?  Would I wrap P1, P2 and P3 in a protected
object and call as follows (perhaps creating a record to hold A..F to
make things a bit cleaner)?

  PO.P(A,B,C,D,E,F);

Or if not that, what?  Thanks.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-04  7:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-03 20:06 Basic critical sections question usenet
2010-07-03 21:48 ` John B. Matthews
2010-07-04  7:58 ` Dmitry A. Kazakov

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