5
votes
1answer
270 views

Ruby script on-all-nodes-run not only for teaching

I wrote the following Ruby script several years ago and have been using it often ever since on a Bioinformatics computer cluster. It pulls out a list of hosts from the Torque queuing system qnodes. ...
4
votes
3answers
437 views

Read-write lock implementation for Ruby

I recently answered a question on Stack Overflow where someone asked for advice about making a Hash thread-safe. They indicated that performance was important and that there would be a heavy read ...
4
votes
1answer
269 views

Activeresource-response gem

I created my first gem for Rails today. https://github.com/Fivell/activeresource-response. This gem adds possibility to access http response object from result of activeresource call. I don't know ...
3
votes
1answer
182 views

Concurrent stack implementations in Ruby (relative performance of mutexes/CAS?)

This code is very simple, but it is intended as an experiment in the relative performance of mutexes/CAS on different platforms. The latest version can always be found at: ...
1
vote
1answer
223 views

Read-write lock implementation for Ruby, new version

I recently discovered that there is no free read-write lock implementation for Ruby available on the Internet, so I built one myself. The intention is to keep it posted on GitHub indefinitely for the ...
0
votes
0answers
8 views

How do you have threads in Ruby send strings back to a parent thread [migrated]

I want to be able to call a method that repeats x amount of times on a separate thread that sends messages such as "still running" every few moments to the console while I am free to call other ...