This is an open ended question, you should spend an hour or so working on it. This topic could turn into a Masters project at least if perused. Make sure you cite your sources.
#include <iostream>
#include <unistd.h>
using namespace std;
int main() {
fork();
fork();
fork();
return 0
}
fork perform copy on write?