Skip to content

Instantly share code, notes, and snippets.

@sniper7kills
Created May 9, 2016 23:17
Show Gist options
  • Save sniper7kills/3b33656717c7f1e7914e10fc890dc193 to your computer and use it in GitHub Desktop.
Save sniper7kills/3b33656717c7f1e7914e10fc890dc193 to your computer and use it in GitHub Desktop.
cpp
pid t pid;
pid = fork();
if (pid == 0) {
/* child process */
fork();
thread create( . . .);
}
fork();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment