managing access to multiply pools

Discussion in 'Java' started by Maciej, Aug 10, 2007.

  1. Maciej

    Maciej Guest

    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 ?

    Regards,

    Maciej
    Maciej, Aug 10, 2007
    #1
    1. Advertising

  2. Maciej

    Daniel Dyer Guest

    On Fri, 10 Aug 2007 11:43:36 +0100, Maciej <> 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_philosophers_problem).

    Dan.

    --
    Daniel Dyer
    http://www.uncommons.org
    Daniel Dyer, Aug 10, 2007
    #2
    1. Advertising

  3. Maciej

    Lew Guest

    Maciej <> 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
    Lew, Aug 10, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ollie

    recycling app pools.....

    Ollie, Aug 26, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    453
    Kevin Spencer
    Aug 26, 2004
  2. dreamlinetheater

    Troubleshooting ASP.Net Application Pools on IIS6

    dreamlinetheater, Nov 18, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    11,882
    Ganesh Anekar [MSFT]
    Nov 18, 2004
  3. Gordon Smith

    Application Pools

    Gordon Smith, Feb 28, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    314
    Rick Strahl [MVP]
    Feb 28, 2005
  4. dm1608

    ASP.NET App Pools

    dm1608, Nov 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    450
    Bruce Barker
    Nov 16, 2005
  5. =?Utf-8?B?dmNzam9uZXM=?=

    IIS App Pools

    =?Utf-8?B?dmNzam9uZXM=?=, Mar 15, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    406
    =?Utf-8?B?dmNzam9uZXM=?=
    Mar 15, 2006
Loading...

Share This Page