Skip to main content
edited tags
Link
Rajendra Uppal
  • 20.1k
  • 15
  • 63
  • 59
Source Link
Rajendra Uppal
  • 20.1k
  • 15
  • 63
  • 59

Object pool design pattern problem

For object pools, we say that whenever client asks for a resource, we give it from the pool. If I checked out one resource and changed its state and checked it in. What happens on the next request, does the pool let client check out this resource or this resource is invalid for the pool now?