Hi

I have created essentially a webapp using sinatra/webrick which allows a
user to queue bits of work. These bits of work are essentially long
running processes.

So i was thinking of using the Queue class to queue these requests and a
different thread to work thru the list (for example encoding videos).

The user should be able to check on the progress of list AND
reorder/move items up/down the list.

Now i've hand written stuff like this in java/servlet, but in Ruby
what's the best way to ensure that the queue can be enumerated in a
synchronized way? and in a Queue what's the best way to reorder items?
would i have to use an indexed/synchronized array or something?

Any pointers helpful

Thanks
-- 
Posted via http://www.ruby-forum.com/.