comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org>
Subject: Re: Multitasking and containers
Date: Mon, 27 Nov 2006 04:17:11 GMT
Date: 2006-11-27T04:17:11+00:00	[thread overview]
Message-ID: <bFtah.295754$1i1.172141@attbi_s72> (raw)
In-Reply-To: <u8xi1hwk5.fsf@earthlink.net>

Matthew Heaney wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> Write your own container. Parallel systems require delicate handmade work.
> 
> Horrible advice.  Just declare the container inside a protect object, and
> manipulate the container by calling protected procedures.  Works great...

Not at all, even for sequential systems. Standard libraries are 
necessarily compromises among various concerns such as safety, 
performance, ease of use, and so on. Specific projects may, and 
sometimes will, have requirements that are not met by such libraries. In 
such cases, custom versions are needed.

In this case, we may have an instance of premature optimization; the OP 
seems to be worrying about the overhead of wrapping a container in a 
protected object without any evidence that this approach won't meet the 
project's requirements (indeed, it seems there is no project and no 
specific requirements are involved). In that case, it probably will 
"work great". But in specific cases a custom version that does allow 
unprotected multiple readers may be required.

-- 
Jeff Carter
"There's no messiah here. There's a mess all right, but no messiah."
Monty Python's Life of Brian
84



  reply	other threads:[~2006-11-27  4:17 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-24  8:51 Multitasking and containers Maciej Sobczak
2006-11-24 10:11 ` Georg Bauhaus
2006-11-24 10:19 ` Dmitry A. Kazakov
2006-11-24 10:35   ` Maciej Sobczak
2006-11-24 11:14     ` Dmitry A. Kazakov
2006-11-24 12:13       ` Matthew Heaney
2006-11-27  4:17         ` Jeffrey R. Carter [this message]
2006-11-27 10:30           ` Georg Bauhaus
2006-11-27 18:41             ` Jeffrey R. Carter
2006-11-27 18:57               ` Dmitry A. Kazakov
2006-11-27 19:45               ` Matthew Heaney
2006-11-27 21:15                 ` Simon Wright
2006-11-28  1:43                 ` Dr. Adrian Wrigley
2006-11-28  2:19                   ` Matthew Heaney
2006-11-28  8:50                     ` Dmitry A. Kazakov
2006-11-28 10:31                       ` Georg Bauhaus
2006-11-28 11:24                         ` Dmitry A. Kazakov
2006-11-29  8:51                           ` Georg Bauhaus
2006-11-28 17:12                       ` Matthew Heaney
2006-11-28 18:21                         ` Dmitry A. Kazakov
2006-11-28 19:17                           ` Matthew Heaney
2006-11-29 18:43                             ` Dmitry A. Kazakov
2006-11-29 10:14                       ` Maciej Sobczak
2006-11-29 15:50                         ` Matthew Heaney
2006-11-24 12:12     ` Matthew Heaney
2006-11-24 12:05   ` Matthew Heaney
2006-11-24 12:02 ` Matthew Heaney
replies disabled

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