Okay so i have 2 programms (writer-reader style) and a shared memory struct established between them + of course the needed semaphores. Struct is the below
st