Professional Documents
Culture Documents
Prioritatea Firelor
Prioritatea Firelor
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
void * thread1()
{
printf("Hello!!\n");
}
void * thread2()
{
printf("How are you?\n");
}
int main()
{
int result1, result2;
pthread_t tid1,tid2;
pthread_join(tid1,NULL);
pthread_join(tid2,NULL);
sleep(10);
return 0;
}