priority

thr.priority â integer
Instance Public methods

Returns the priority of thr. Default is inherited from the current thread which creating the new thread, or zero for the initial main thread; higher-priority thread will run more frequently than lower-priority threads (but lower-priority threads can also run).

This is just hint for Ruby thread scheduler. It may be ignored on some platform.

Thread.current.priority   #=> 0
doc_ruby_on_rails
2015-05-17 13:55:41
Comments
Leave a Comment

Please login to continue.