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/aBGa-VD9p_k/pythons-swap-not-atomic

Sacramento Ecommerce Website Design Sacramento Ecommerce Website Development Sacramento Wordpress Website Design Sacramento Web Development Sacramento Website Design

No comments:

Post a Comment

Blog Archive