Bugs item #9299, was opened at 2007-03-15 08:17
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9299&group_id=426

Category: Core
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Sylvain Joyeux (lapinot)
Assigned to: Nobody (None)
Summary: Thread are inheriting the priority of the starting thread

Initial Comment:
[~/tmp]% cat bla.rb

t1 = Thread.new do
    Thread.current.priority = 10
    t2 = Thread.new do
        STDERR.puts "t2: #{Thread.current.priority}"
    end
    STDERR.puts "t1: #{Thread.current.priority}"
    t2.join
end

t1.join


Output is 
t1: 10
t2: 10

Since documentation says "Default is zero; higher-priority threads will run before lower-priority threads", no clue is given as to priority inheritance between the launched thread and the launching thread.

It is IMO a bug, but if it is the expected behaviour, plays state it in the documentation.



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9299&group_id=426