Displaying 1 result from an estimated 1 matches for "des_parametres".
2010 Jan 22
0
too many connection
...esn''t work. Here is an example of my script.
I precise that I use activerecord.
threads = (1..5).map do |i|
Thread.new(QUEUE) do |q|
until ( q == (tab = q.deq))
functions_that_executes_many_mysql_requests
end
end
end
10.times do |t|
30.times do |s|
QUEUE.enq(des_parametres)
end
threads.size.times { QUEUE.enq QUEUE}
threads.each {|u| u.join}
end
I hope someone can help me
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,...