So, today we were being taught about forking (with respect to Operating Systems :P), and some of my mates seem confused.

The question that was asked in the class was what would be a tree structure of processes when the following code is run:
(You could assume first process to be P1, and then P2, and so on..)

The tree structure that is formed looks like this :
forking-os

Now, imagine this situation :
I am a robber, and I know how to break their inner locks and security and want to rob a bank. Now, I can’t do this alone, because there’s a high probability I’ll get caught, right? So, I enter the bank, and while entering, I befriend Continue reading