t1 = Thread.new { $SAFE = 1; sleep 5 }t2 = Thread.new { $SAFE = 3; sleep 5 }sleep 1lev0 = Thread.main.safe_level # 0lev1 = t1.safe_level # 1lev2 = t2.safe_level # 3