U:RDoc::AnyMethod[iI"priority=:ETI"Thread#priority=;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"PSets the priority of thr to integer. Higher-priority threads ;TI"Nwill run more frequently than lower-priority threads (but lower-priority ;TI"threads can also run).;To:RDoc::Markup::BlankLine o;
; [I"MThis is just hint for Ruby thread scheduler. It may be ignored on some ;TI"platform.;T@o:RDoc::Markup::Verbatim; [I"count1 = count2 = 0
;TI"a = Thread.new do
;TI" loop { count1 += 1 }
;TI"
end
;TI"a.priority = -1
;TI"
;TI"b = Thread.new do
;TI" loop { count2 += 1 }
;TI"
end
;TI"b.priority = -2
;TI"sleep 1 #=> 1
;TI"count1 #=> 622504
;TI"count2 #=> 5832;T:@format0:
@fileI"
thread.c;T:0@omit_headings_from_table_of_contents_below0I"$thr.priority= integer -> thr
;T0[ I" (p1);T@$FI"Thread;TcRDoc::NormalClass00