There are two source files: child.c and parent.c. I create a shared memory in parent.c, and I can read these data in child.c. I need to output data when I read the character "a". How to create a unnamed semaphore to constantly read data from a shared memory. Should I create a semaphore in two source files or only the child.c? Thank you in advance!.