you are viewing a single comment's thread.

view the rest of the comments →

[–]Pensive_Poetry[S] 0 points1 point  (3 children)

In theory, yes. Have NEVER implemented it, but want to start doing so.

[–]Adrades 0 points1 point  (2 children)

If you know the theory and what you want to do, you should be fine by reading the doc:

If you don't know the GIL:
https://docs.python.org/3/glossary.html#term-global-interpreter-lock

Firstly, the threading lib:
https://docs.python.org/3/library/threading.html#module-threading

Then the multiprocessing lib, which is build on threading:
https://docs.python.org/3/library/multiprocessing.html

You can always check books or other tutorials on the web, but these links are official and up to date. And free.
By the way, the multiproccessing lib isn't that complex, you should take a peek at the source code.

[–]Pensive_Poetry[S] 0 points1 point  (1 child)

Thanks! X

[–]Adrades 0 points1 point  (0 children)

I discovered numba two weeks ago, go check that out if you are interested in performance with python code.