lib/zold/node/farm.rb in zold-0.14.11 vs lib/zold/node/farm.rb in zold-0.14.12
- old
+ new
@@ -75,9 +75,10 @@
cleanup(host, port, strength, threads)
@log.info("#{@pipeline.size} scores pre-loaded, the best is: #{best[0]}")
@threads = (1..threads).map do |t|
Thread.new do
Thread.current.name = "f#{t}"
+ Thread.current.priority = -100
loop do
VerboseThread.new(@log).run do
cycle(host, port, strength, threads)
end
end