On 2015-06-21 19:48, anu sree wrote:
Thanks noufal,
I got it.
After gevent.spawn, we have to do join or gevent.joinall or
gevent.sleep or
patched library call to start the greenlets, right ?
join (and joinall) will pause the current greenlet till the ones you've
joined terminate (similar t
Thanks noufal,
I got it.
After gevent.spawn, we have to do join or gevent.joinall or gevent.sleep or
patched library call to start the greenlets, right ?
I have see the code which not using any of these after gevent.spawn, How it
is working there ?
https://github.com/Juniper/contrail-controller/
On Sun, Jun 21 2015, anu sree wrote:
[...]
> This code has two pause (gevent.sleep(0)), in Consumer.start and
> Worker.run. Here control goes to Worker.run when Consumer.start
> pauses and Consumer.start gets control back when Worker.run
> pauses. There may be benefit from this switching, but I