C Language mmap Record Game Simulator

Job ID: 39259226

Budget: €15 – €20 EUR

I need to create a C language program that will register simulated results of a game in a mmap file.
It should consist of 3 different .c files.
First one, the main program, we can call (jmmlog.c) that receives via POSIX queues, simulated results of a game contained in variables of a typedef struct and should process this results and create 2 top 10 record table for levels 1 and 2 for the different player game results simulated using mmap.
The second program, which simulates the games I have already created and is ready to send the game results via POSIX queues (jmmserv.c).
The third code (jmmapl.c) is the code that the player will interact with, it should contain 3 commands: command "ltc" to list the record tables for level 1 and 2 and the top 10 in each level / command "rtc" to reset the records table, basically erasing every record on the mmap records file / ''trh" to terminate the (log.c) program. This commands should be in a communication between jmmapl.c to jmmlog.c using UNIX datagram sockets.

I will provide the 3 programs with what is already done and now it is basically missing the mmap part to map the game results in a file containing the tables and implement the commands ltc and rtc to manipulate the tables from jmmapl.c program.

Use pthreads and pthread mutexes and others to implement the commands and simultaneous communication between jmmlog.c and jmmserv.c with queues and on the other hand jmmlog.c and jmmapl.c with sockets.
Related categories: C Programming Engineering