rubix icon indicating copy to clipboard operation
rubix copied to clipboard

Use semaphore in ObjectPool

Open harmandeeps opened this issue 5 years ago • 2 comments

The intent of the change is to remove the synchronization block while getting/returning objects from pool and use a semaphore to enable parallel object creation.

harmandeeps avatar Jul 13 '20 08:07 harmandeeps

Also, can you please the exact motivation for using semaphore in the object pool? Were things like atomic counter + mutex locking or blocking queue not enough for controlling concurrency? (and why if they were not).

rohangarg avatar Jul 28 '20 12:07 rohangarg

Also, can you please the exact motivation for using semaphore in the object pool? Were things like atomic counter + mutex locking or blocking queue not enough for controlling concurrency? (and why if they were not).

changed the description. please check.

harmandeeps avatar Sep 30 '20 10:09 harmandeeps