Guest User

Untitled

a guest
Mar 13th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment