fork tag

2 questions


1 answers
37 views
0
There are too many processes in the forks

When you run the following source code:As I intended, there should be 6 molesThere are 8 pictures. Why is that?#include <stdio.h>#include <sys/types.h>#include <unistd.h>int main(voi...

2 years ago

2 answers
38 views
0
I'm curious about the linux fork() routine

at fork() on Linux,I wonder which parts of the memory are shared by Parent and Child, and which parts are copied and kept.(Before the COW happened.))

2 years ago

© 2024 OneMinuteCode. All rights reserved.