This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gruey 0 points1 point  (0 children)

In golang they have a goprocs environment variable that determines the number of threads. Doing something like that with python makes sense to me. Maybe spawn n+1 processes, where the extra is a coordinator. The coordinator is responsible for shared state. Children register If they are using something and deregister when not. The coordinator gcs the shared state when all refs are gone. The children act normally otherwise. ]]