Created
November 5, 2018 01:30
-
-
Save calvincodes/6c0c2f1f8bd0aa78959641bef5ff7593 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sys/types.h> | |
int main() { | |
// Infinite Loop | |
while(1){ | |
// Fork will create another CLONE process. | |
// Being a clone of the parent, child process | |
// will also CLONE a copy of itself. | |
// and this goes on and on and on. | |
fork(); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment