queue with limit to number of simultaneous tasks

2009-07-14 Thread Alexander Sibiryakov
Hello everybody! Please give me advice about designing application on zookeeper. I'd like to implement queue with limit on number of simultaneous tasks. For example I have 10 tasks, and I can process only 2 tasks simultaneously. When one task is finished processing, system should start another,

Re: queue with limit to number of simultaneous tasks

2009-07-27 Thread Alexander Sibiryakov
Thank you for this thoughts. It's help to look at my problem at different view. It seems, that I can use slightly modified lock recipe. Ted Dunning wrote: As you look at this, I would be grateful if you can evaluate alternative implementations in which a) each task is a separate file or b) a