Open jaromiru opened 7 years ago
Used threading library used in A3C example is not really concurrent. See https://docs.python.org/3/library/threading.html.
threading
In CPython, due to the Global Interpreter Lock, only one thread can execute Python code at once.
This implementation still benefits from this design, performance is however severely degraded. Could be possibly fixed by rewriting in multiprocessing library, https://docs.python.org/3.6/library/multiprocessing.html
multiprocessing
If anyone wants to do it, let me know.
Any update on this? :)
Thanks! Not only using multiprocessing but also we need to communicate with ipc. Is there any example for this?
Used
threading
library used in A3C example is not really concurrent. See https://docs.python.org/3/library/threading.html.This implementation still benefits from this design, performance is however severely degraded. Could be possibly fixed by rewriting in
multiprocessing
library, https://docs.python.org/3.6/library/multiprocessing.htmlIf anyone wants to do it, let me know.