#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
#include <string.h>
#include <sys/file.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <time.h>
void *f_watek1(void * p){
printf("Watek 1: %lu, PID: %d\n", pthread_self(), getpid());
return 0;
}
void *f_watek2(void * p){
printf("Watek 2: %lu, PID: %d\n", pthread_self(), getpid());
return 0;
}
int main(){
pthread_t watek1;
pthread_t watek2;
pthread_create(&watek1, NULL, f_watek1, (void *)&watek1);
pthread_create(&watek2, NULL, f_watek2, (void *)&watek2);
pthread_join(watek1, NULL);
pthread_join(watek2, NULL);
return 0;
}