A problem with relative priority of threads (newbie)

D

dingo

Hi All,

I am newbie to Ruby:) Created some tests and browsed the group to find
some answers on the subject. What I would like to do is to have two
threads where one runs more often than another. It seems the way to do
anything like this is by using Thread#priority. What I have been able
to do so far is making one thread to run exclusively (higher priority),
while thread #2 (with lower priority) doesn't get any run-time at all!
This doesn't seem right, but maybe I am missing something here.

Any ideas how to accomplish what I want?
Thanks
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top