Syscall_test/jointest.c
void func(void *arg)
{
  int pid = getpid();
  printf(1, "\tChild thread: pid is %d\n", pid);
  exit();
}
// this function will be run by the cloned process

this function will be run by the cloned process
this function will be run by the cloned process
void func(void *arg)
{
  int pid = getpid();
  printf(1, "\tChild thread: pid is %d\n", pid);
  exit();
}
void func ( void * arg ) { int pid = getpid ( ) ; printf ( 1 , " \t \n " , pid ) ; exit ( ) ; }
this function will be run by the cloned process
this function will be run by the cloned process