M2_SETI/T2/tp/T2-TP_suite/multitaskingAccumulator.c

35 lines
821 B
C
Raw Permalink Normal View History

2022-11-22 15:17:48 +01:00
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <pthread.h>
#include <semaphore.h>
#include "multitaskingAccumulator.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("[multitaskingAccumulator]Software initialization in progress...\n");
acquisitionManagerInit();
messageAdderInit();
displayManagerInit();
printf("[multitaskingAccumulator]Task initialization done.\n");
printf("[multitaskingAccumulator]Scheduling in progress...\n");
displayManagerJoin();
messageAdderJoin();
acquisitionManagerJoin();
printf("[multitaskingAccumulator]Threads terminated\n");
exit(EXIT_SUCCESS);
}