Controlling resources using concurrent concepts
I am writing Thread based application with 10 threads and maintaining
database connection pool of 5 and returning databse transaction after
transaction success or failure regardless. Am i require to use Counting
semaphore to control the thread access to database connection or have to
use ReentrantLock and its condition object to control the access ? Really
confusing these 2 concetps. Please provide any suggestions.
Regards,
Chaituhara
No comments:
Post a Comment