comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: task-safe hash table?
Date: Thu, 01 Jun 2006 07:32:49 +0100
Date: 2006-06-01T07:32:49+01:00	[thread overview]
Message-ID: <m2psht4c8e.fsf@grendel.local> (raw)
In-Reply-To: 1148943364.334619.24290@j73g2000cwa.googlegroups.com

"John" <jpwoodruff@irisinternet.net> writes:

> tmoran@acm.org wrote:
>> Is there some code around for a hash table that allows multiple tasks
>> to do simultaneous lookup?
>
> I think you might be able to get part way by consulting the original
> Booch components.

The 95 BCs were going to have Synchronized and Guarded extensions, but
(a) the design meant that this was going to be a _lot_ of work, (b)
the form that just did a global lock on the container was easy enough
to do, but the other, which was meant to implement finer granularity,
turned out to be far too application-specific; so I ended up not doing
either. The killer was iteration.

It seems better to use the BCs (or Ada.Containers come to that) as an
implementation mechanism for whatever storage your application needs
behind appropriate concurrency mechanisms.



  parent reply	other threads:[~2006-06-01  6:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-29 21:42 task-safe hash table? tmoran
2006-05-29 22:56 ` John
2006-05-30  0:18   ` tmoran
2006-05-30  3:50     ` John
2006-05-30  4:35       ` tmoran
2006-05-30  9:50         ` Georg Bauhaus
2006-06-01  6:32   ` Simon Wright [this message]
2006-06-01 19:30     ` tmoran
2006-06-01 20:03       ` Ludovic Brenta
2006-06-01 20:07       ` Dmitry A. Kazakov
2006-06-02  4:31         ` Jeffrey R. Carter
2006-06-02 10:36         ` Stephen Leake
2006-06-03  6:50         ` tmoran
2006-06-03 20:40           ` tmoran
2006-06-02 10:35       ` Stephen Leake
2006-06-02 20:19         ` tmoran
2006-06-03 21:10           ` M E Leypold
2006-06-04  0:23             ` tmoran
2006-06-04 12:55           ` Stephen Leake
2006-06-04 17:22             ` tmoran
2006-06-08  1:10               ` Stephen Leake
2006-06-11 13:29               ` Georg Bauhaus
2006-06-04 17:48             ` Simon Wright
2006-06-05  0:23               ` tmoran
2006-06-05 21:57           ` Steve Whalen
2006-06-06 11:10             ` Ole-Hjalmar Kristensen
2006-05-30 15:00 ` 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