Hi, Im working with threads but Im having a problem, my first approach was to create a new Thread everytime I need it, once the thread was created it creates connection to a data base and perform some stuff...but things started to get a little slow So what Im doing it is to create N threads to be available for use, and every thread will have its own DB connection initiated and opened since the beginning, so when it's needed everything goes a little faster because the connection it's already opened. My problem its that once a thread finishes its job I want to keep it available for reusability, and my threads are dying just after they finished with its run process....
Any suggestions ?
Thanks in advanced
Regards
Any suggestions ?
Thanks in advanced
Regards