Maciej
Guest
Posts: n/a

 08-10-2007
Hi,

Let's say I've got two pools with LEGO blocks. Pool-1 with triangles,
Pool-2 with squares, Pool-3 with squars The kid-A (threa-A, if you
wish so) need a triangle, a circle and a square, but the second Pool
is out of resources. So kid-A waits for available resource. Kid-B need
to check-out a triangle, and Kid-C -- a circle, and they could check
them out from pools, but Kid-A block access. If a square is not
checked-in into Pool-2 no-one will be satisfied, even Kid B and C. Is
it the right strategy to solve that problem ?

Regards,

Maciej

Daniel Dyer
Guest
Posts: n/a

 08-10-2007
On Fri, 10 Aug 2007 11:43:36 +0100, Maciej <(E-Mail Removed)> wrote:

> Hi,
>
> Let's say I've got two pools with LEGO blocks. Pool-1 with triangles,
> Pool-2 with squares, Pool-3 with squars The kid-A (threa-A, if you
> wish so) need a triangle, a circle and a square, but the second Pool
> is out of resources. So kid-A waits for available resource. Kid-B need
> to check-out a triangle, and Kid-C -- a circle, and they could check
> them out from pools, but Kid-A block access. If a square is not
> checked-in into Pool-2 no-one will be satisfied, even Kid B and C. Is
> it the right strategy to solve that problem ?
>
> Any examples how is managing access to multiply pools solved ?
>

This sounds like the Dining Philosophers problem
(http://en.wikipedia.org/wiki/Dining_...phers_problem).

Dan.

--
Daniel Dyer
http://www.uncommons.org

Lew
Guest
Posts: n/a

 08-10-2007
Maciej <(E-Mail Removed)> wrote:
>> Let's say I've got two pools with LEGO blocks. Pool-1 with triangles,
>> Pool-2 with squares, Pool-3 with squars

Pool-4 with an almost fanatical devotion to the Pope, ...

--
Lew