How about something like this
I have never done real programming in C but let's see if I can point you in the right direction. You are probably going to end up using global static variables
So declare those outside of the main method.
Then you will probably end up using mmap so something like
Then initialize each global variable somewhere in main
Now you you have a set of global variables that can be shared with all processes which is the real challenge in this assignment.
Hope you figure it out. Let me know if you need more help.
Thanks again and I will do that.