Demo entry 5225133

linux

   

Submitted by ys on Jun 10, 2016 at 04:17
Language: C. Code size: 271 Bytes.

  #include <stdio.h>
  #include <unistd.h>
  #include <stdlib.h>
  #include <sys/types.h>
  
  int main()
  {
      pid_t   pid1;
      pid_t   pid2;
 
     pid1 = fork();
     pid2 = fork();
 
     printf("pid1=%d,pid2=%d\n",pid1,pid2);
     exit(0);
 }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).