--
lternative 00459655C1257487_Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello guys,

I have made an multithreaded algorithm that triggers around a hundred 
concurrent threads. I have in fact, two versions of the same algorithm, 
one with threads and another with recursive calls.

Each thread execute a query on an Oracle database and according to the 
data, it either calls a new thread and ends, or it stores the result in a 
global array. The recursive version follow the same process, but instead 
or running in parallel, it calls the method over and over sequentially.

The recursive version runs perfectly and it ends without problem. The 
multithreaded version fails with an exception that I am not able to 
identify.

If I leave the Thread.abort_on_exception = false, the algorithm ends after 
triggering about 10 threads. If I set it to Thread.abort_on_exception = 
true, the algorithm end abnormally, but without printing any error 
message.

I have added the following code at the end of the method called by the 
thread:

rescue Exception => error
    puts "#{error.class}: #{error.message}"

But I cannot get any error message in the console. I am sure that the 
problem is something related with the database, but I do not know how to 
solve the problem if I do not see the error message.

Any ideas?

---
Guillermo Acilu
Senior Engineer, Koiaka GmbH

Koiaka GmbH
Riesserkopfstr. 17 
82467 Garmisch-Partenkirchen
Tel: +49 (0)8821 9679555 
Fax: +49 (0)8821 730 9185 
Mailto:guillermo.acilu / koiaka.com
http://www.koiaka.com

Amtsgericht Mchen: HR B 161 041 
GeschçÇtsfrer: Guillermo Acilu 
Sitz: Garmisch-Partenkirchen

Diese Email kann vertrauliche und/oder rechtlich geschzte Informationen 
enthalten. Wenn Sie nicht der richtige Adressat sind oder diese Email 
irrtlich erhalten haben, dfen Sie diese weder benutzen, kopieren, 
weiterleiten oder irgend eine Ma¡¬nahme einleiten, die im Zusammenhang mit 
dem Inhalt dieser Email steht. Informieren Sie bitte sofort den Absender 
und vernichten Sie die irrtlich erhaltene Email vollstçÏdig.
Vielen Dank!

This e-mail message may contain confidential and/or privileged 
information. If you are not an addressee or otherwise authorized to 
receive this message, you should not use, copy, disclose or take any 
action based on this e-mail or any information contained in the message. 
If you have received this material in error, please advise the sender 
immediately by reply e-mail and delete this message completely.
Thank you!


--
lternative 00459655C1257487_