Tuesday, May 1, 2012

Python's Swap is Not Atomic

I rewrote PyMongo?s connection pool
over the last few months. Among the concurrency issues I had to nail
down was, if a thread is resetting the connection pool as another thread
is using the pool, how do I keep them from stepping on each other?
I thought I nailed this, but of course I didn?t. There?s a race condition in here:
Preview Text: 


...

Source: http://feeds.dzone.com/~r/zones/css/~3/LJh4eQ9tZvU/pythons-swap-not-atomic-0

Sacramento Logo Design Sacramento Web Design Sacramento SEO Sacramento Graphic Design Sacramento Ecommerce Website Design

No comments:

Post a Comment

Blog Archive