#include
#include
#include
int peter = 10;
static pid_t gettid...(void)
{
return syscall(SYS_gettid);
}
static void* thread_call(void* arg)
{
peter = 100;
printf(...\n");
printf("thread_call pid = %d, tid = %d, peter = %d\n", getpid(), gettid(), peter);
return NULL...\n");
printf("process pid = %d, tid = %d, peter = %d\n", getpid(), gettid(), peter);
return ret;