A process can have multiple threads. Garbage collection works in one process.
On systems that support fork: if you disable garbage collection in one process and then expand it (= create a copy of the process), then the GC must also be disabled in the copy.
If new processes that are not a copy are created, they have their own garbage collection configuration. By default, their GC should be enabled.
But there are many libraries that have a Process class. I canβt say what they are doing. If you use os to create a new process (not a copy), it should start with GC enabled.
The configuration of one GC process does not affect the configuration of another GC. Processes are boundaries for protecting code from another. Thus, everything in one process cannot easily fall into another process.
source share