method

priority

v1_8_6_287 - Show latest stable - Class: Thread
priority()
public

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 threads will run before lower-priority threads.

   Thread.current.priority   #=> 0