2 ms·
> Me too. I found it simple: Create new child process, copy the address space, copy the instruction pointer, let it run. Even in the total absence of threads (
by the_mitsuhiko 10y ago
> Me too. I found it simple: Create new child process, copy the address space, copy the instruction pointer, let it run.
Even in the total absence of threads (which you never have on a modern OS) you already fucked up. Because you did not account for file handles, signal handling, pid management etc.
fork() even on the simplest real world operating system is a massive pain for the OS.