Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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