gevent


Is join required on gevent gthreads?


Is a join required with gthreads, or can it just be used when blocking on a gthread is desirable?
Obviously, this is required with threads in most languages, but it seems like all documentation and discussions seem to omit this requirement, therefore implying that it's not necessary.
It's not required, but you'll generally want some sort of an implicit join else your program will exit after spawning each greenlet.
It's common to use a while True loop that performs other actions as the greenlets are running, or a while loop that will stop when each greenlet is killed, which achieves a similar effect. This basically leaves the greenlets to run in the background.
There needs to be some sort of blocking action between spawning greenlets and the end of the program, whether that be a join, a Python construct, or a call to something else.

Related Links

building gevent in raspberry pi qemu
Some confusion about gevent (cffi) setup
Do rdflib and gevent work nicely together?
Replace gevent.spawn_link_exception
thread exception occurred in gevent
Is join required on gevent gthreads?
ZeroRPC heartbeats and timeouts
NewRelic doesn't graph any data in a Python + Gevent based system
Is there any way to run gevent-socketio 0.3.5-rc2 with gunicorn 18.0 without downgrading
How can I test to see whether gevent monkey patching is active?
How does gevent interact with threading.local data?
werkzeug server failed to handle request
Running time puzzle about gevent
Why does this http streaming not work as expected?

Categories

HOME
internet-explorer
url
google-cloud-pubsub
service
locale
x86-64
watson-iot
localhost
browserstack
wavefront
webpack-dev-server
software-collections
ejb-3.0
ethereum
google-my-business-api
captcha
mongodb-replica-set
cakephp-2.0
repeater
loss
template10
amazon-data-pipeline
web-parts
single-page-application
keystone
javaagents
connection-pooling
datastax-enterprise
orgchart
proof-general
blockly
mplab
rtos
n1ql
angularjs-resource
odp.net
sampling
asp.net-webhooks
stochastic-process
linkurious
sknode
bzip2
colorbox
risc
flask-socketio
google-cloud-shell
jcs
recursive-query
breadcrumbs
stringbuilder
glade
visual-web-developer
scriptengine
patching
mrunit
shtml
window.location
dday
dynamics-nav
imageicon
gitk
lytro
windows-phone-8-emulator
musicbrainz
consul-template
eaaccessory
pagecontrol
vensim
eggplant
avd
genome
bungeecord
cordova-3
uiblureffect
apache-pivot
dirname
cocos2d-x-2.x
oxygenxml
serializer
rails-migrations
xpand
pidgin
ekevent
kohana-orm
violation
django-tinymce
rfc822
databus
nsundomanager
mcpd
overlays
netduino
excellibrary
nyromodal
google-local-search
iphone-maps
p4.net
dongle
xslt-grouping
ihtmldocument2
urlscan

Resources

Encrypt Message