daily pastebin goal
62%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int main() {
  2. Pid_t pid1, pid2;
  3. Pid1 = fork();
  4. pid2 = fork();
  5. if (pid1 == 0) { /* child process */
  6. thread_create(. . .);
  7. }
  8. if (pid2 == 0) { /* child process */
  9. pthread_create(. . .);
  10. }
  11. fork();
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top