python - Is it ok to use Gevent and threading together? -
for illustration - have class internally uses gevent concurrency, , takes callback, if user of class utilize python threading
or multiprocessing
modules? lead programme disaster?
some more details: class custom protocol implementation, involves lots of reading/writing sockets. protocol includes such feature alternative send multiple requests (within single tcp connection) in order load multiple cores on server, , wait responses. that's why need concurrency. class library part of big project, , can used in every possible crazy way. i'm new gevent , barely aware monkey-patching feature.
python multithreading concurrency multiprocessing gevent
No comments:
Post a Comment