comp.lang.ada
 help / color / mirror / Atom feed
* Protected Objects And Many Processors
@ 2011-01-21 18:09 Georg Bauhaus
  2011-01-21 19:31 ` Yannick Duchêne (Hibou57)
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Georg Bauhaus @ 2011-01-21 18:09 UTC (permalink / raw)


Suppose I have a computer that has P processors of C cores each.
A program to be run on this computer has two shared data objects
and a number N of tasks, plus one.  Each task is a member of one
group of tasks, and one group communicates via exactly one of
the shared data objects.  The additional task can synchronize
data between the two shared objects.


    T(1,1)                          T(2,1)
  T(1,2)                               T(2,2)
   ...       PO1  --- TPlus ---  PO2   ...
  T(1,N/2-1)                           T(2,N/2-1)
    T(1,N/2)                        T(2, N/2)

The presence of shared data almost always triggers the idea
of employing protected objects, since these avoid the overhead
of task switching.  But availability of computing hardware seems
to renders this a weaker argument.

Are protected objects still the best choice on a computer
that has many processors and/or cores?

Will the program run just as well when written with only task
objects if and when the number of available processors is
sufficient, that is, C > N?




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

end of thread, other threads:[~2011-02-06 20:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-21 18:09 Protected Objects And Many Processors Georg Bauhaus
2011-01-21 19:31 ` Yannick Duchêne (Hibou57)
2011-01-21 20:35   ` Dmitry A. Kazakov
2011-01-21 21:48     ` Yannick Duchêne (Hibou57)
2011-01-21 22:32     ` Yannick Duchêne (Hibou57)
2011-01-24 11:29       ` comp.lang.php
2011-01-24 14:53         ` Dmitry A. Kazakov
2011-01-21 19:55 ` Jeffrey Carter
2011-01-21 20:31   ` Yannick Duchêne (Hibou57)
2011-01-22  5:16     ` Randy Brukardt
2011-02-06 20:04       ` Yannick Duchêne (Hibou57)
2011-02-06  1:22 ` Gene

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