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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to