This post is more than 5 years old
20 Posts
0
4039
May 15th, 2010 20:00
Preferred pool connection model in multithreaded environment
I have the application that has multiple threads reading and writing files from/to same Centera pool.
What is the ‘preferred’ pool connection model in this case?
- One pool reference is shared among all threads
- Each thread manages its own pool reference.
Is there any advantage in performance or resource usage between these two approaches?
I am currently using the first model, but I see drawbacks in error handling – e.g. when the pool connection is lost the recovery steps need synchronization.
No Events found!
gstuartemc
2 Intern
•
417 Posts
0
May 16th, 2010 00:00
The first approach (a single Pool Reference shared amongst the threads) is the Best Practice and gives the better level of performance.
Regards, Graham L. Stuart
Centera SDK Architect