[openstack-dev] [oslo][concurrency] lockutils lock fairness / starvation
Allain.Legacy at windriver.com
Mon May 15 19:20:46 UTC 2017
> -----Original Message-----
> From: Doug Hellmann [mailto:doug at doughellmann.com]
> Sent: Monday, May 15, 2017 2:55 PM
> Excerpts from Legacy, Allain's message of 2017-05-15 18:35:58 +0000:
> > import eventlet
> > eventlet.monkey_patch
> That's not calling monkey_patch -- there are no '()'. Is that a typo?
Yes, sorry, that was a typo when I put it in to the email. It did have ()
at the end.
> lock() claims to work differently when monkey_patch() has been called.
> Without doing the monkey patching, I would expect the thread to have to
> explicitly yield control.
> Did you see the problem you describe in production code, or just in this
> sample program?
We see this in production code. I included the example to boil this down to
a simple enough scenario to be understood in this forum without the
distraction of superfluous code.
More information about the OpenStack-dev