Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Pooling shared resources

Thread Tools

Pooling shared resources

Posts: n/a

I want to develop a pool of shared resources: let's say auctioning
houses. Each auctioning house (which in fact is an active object) can
handle maximally X negotiations at once. And thus I've started to
design a pool with resources queued in a priority queue, where X is
maximum priority of the resource (i.e. auctioning house). The head of
the queue contains always resource with the highest priority (the
smallest number of actually handled negotiations) and everytime
resource is check-out from the pool, its priority gets decreased. When
the priority hits 0, resource is removed from the queue. Checking-in
resource to the pool works in exactly reverse way.

Is it the right model for this task ?
Do you any generic solutions for pooling with priorities ?
I mean not only ideas but also implementations in Java to learn on
examples ?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Authorization to Shared Resources Jonathan Wood ASP .Net 3 11-15-2007 05:27 PM
Re: Problem accessing shared resources. Jack \(MVP-Networking\). Wireless Networking 0 12-16-2006 02:55 AM
py2app question: Resources/Python -> Resources/lib/python2.4 Russell E. Owen Python 0 09-08-2006 08:08 PM
global shared resources Ed J VHDL 6 01-22-2005 03:35 AM
ASP.NET Worker processes and shared resources Abhishek Srivastava ASP .Net 0 01-28-2004 11:04 AM