M2_SETI/T2/tp/mySoftware.c
2022-10-19 09:02:34 +02:00

34 lines
756 B
C
Executable file

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <semaphore.h>
#include "mySoftware.h"
#include "acquisitionManager.h"
#include "displayManager.h"
#include "messageAdder.h"
#include "displayManager.h"
#include "debug.h"
//The entry point of the process
int main( void )
{
printf("[mySoftware]Software initialization in progress...\n");
acquisitionManagerInit();
messageAdderInit();
displayManagerInit();
printf("[mySoftware]Task initialization done.\n");
printf("[mySoftware]Scheduling in progress...\n");
displayManagerJoin();
messageAdderJoin();
acquisitionManagerJoin();
printf("[mySoftware]Threads terminated\n");
exit(EXIT_SUCCESS);
}