#include <pthread.h>
void print_message_function( void *ptr ); 
  
  main()
  {
    pthread_t thread1, thread2, thread3;
     char *message1 = "Hello";
     char *message2 = "World";

     char *message3 = "Message trois (ou troix)";

     pthread_create( &thread1, NULL,
                    (void*)&print_message_function, (void*) message1);
     pthread_create(&thread2, NULL, 
                    (void*)&print_message_function, (void*) message2);

     pthread_create(&thread3, NULL, 
                    (void*)&print_message_function, (void*) message3);
  
     exit(0);
  }
  
  void print_message_function( void *ptr )
  {
     char *message;
     message = (char *) ptr;
     int i;
     for (i=0; i<3; i++) printf("%s ", message);
  }
