logoalt Hacker News

sanderjdtoday at 3:31 PM2 repliesview on HN

A process that shares nothing with the process that spawned it.


Replies

jerftoday at 3:43 PM

A thing that makes that complicated is that while you want that conceptually, you don't want that in reality. For instance, if the spawning process is in a container of some sort and it spawned a process that "shares nothing with the process that spawned it", the spawned process would no longer be in that container, because the state of "being in the container" is one of the things it shares with the parent process.

This is just an example of I don't even know how many things a modern-day process will share from its parent.

By "complicated" I do not even remotely mean "unsolvable". I just mean that if you really dig down into what it means to "share nothing" in a modern operating system, it's a lot richer than it was back when fork+exec was a practical solution. There's a lot of fuzzy things that could go either way when you say "shares nothing".

show 1 reply
JoBradtoday at 4:02 PM

That’s how you get zombie processes and memory leaks.