Untitled
unknown
plain_text
2 years ago
300 B
4
Indexable
#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>
void*mythread(void*vargp)
{
sleep(1);
printf("welcome to PThreads Library\n");
return NULL;
}
int main()
{
pthread_tid;
printf("before thread\n");
pthread_create(&tid,NULL,mythread,NULL);
pthread_join(tid,NULL);
exit(0);
}Editor is loading...