fork download
  1. #include <stdio.h>
  2. #include <pthread.h>
  3. void* show(void * hello){
  4. printf("hello this is the thread calling \n");
  5. }
  6. int main(void) {
  7. // your code goes here
  8. pthread_t pid;
  9. pthread_create(&pid,NULL,&show,NULL);
  10. printf("this is the main process\n");
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5520KB
stdin
Standard input is empty
stdout
this is the main process