#include <stdio.h>
#include <pthread.h>
void *pthread_func()
{
printf("this is pthread\n");
}
void main()
{
pthread_t tid;
if(pthread_create(&tid,NULL,pthread_func,NULL))
perror("pthread_create");
sleep(1);
printf("this is main\n");
}