#include  <stdio.h>
#include <unistd.h>
#include  <pthread.h>

#define  NUM  5

  void  *print_msg(void *);
int main()
{
  pthread_t t1;    /* dwa watki */


  pthread_create(&t1, NULL, print_msg, NULL);
  pthread_join(t1, NULL);
  return 0;
}
void *print_msg(void * a)
{
  int i = 0;
  for (; i< 10; ++i)
  {
	  printf("%i\n", i);
	  sleep(1);
  }

  return NULL;
}
