[openstack-dev] Asynchrounous programming: replace eventlet with asyncio

Julien Danjou julien at danjou.info
Tue Feb 4 18:59:04 UTC 2014


On Tue, Feb 04 2014, Kevin Conway wrote:

> I disagree with this. Eventlet and gevent yield the execution context
> anytime an IO call is made or the 'sleep()' function is called explicitly.
> The order in which greenthreads grain execution context is deterministic
> even if not entirely obvious. There is no context switching at random.
> What's more is it shouldn't matter when the context switch happens. When
> writing green threaded code you just pretend you have real threads and
> understand that things happen in an order other than A => B => C.

Exactly. Except that – at least in Ceilometer – we absolutely don't want
to have code that handles synchronization and concurrency, whatever the
thread color is.

-- 
Julien Danjou
-- Free Software hacker - independent consultant
-- http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140204/148e13c8/attachment.pgp>


More information about the OpenStack-dev mailing list