Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

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?

  1. One pool reference is shared among all threads
  2. 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.

2 Intern

 • 

417 Posts

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

No Events found!

Top