Description: The program is divided into three sub-programs, respectively, using an end-run them, use the following communication mechanism to complete the desired function. Procedure 1: Accept the information entered by the user, including: help alarm1 alarm2, quit, and information were sent to the program and procedures. Program and procedures through the message queue to communicate, open the help file after receiving help information helpfile read the contents of the displayed Upon receiving the quit exit the program. The program 3 Create two sub-processes. Program 3 and program message queue to communicate, inform the child process semaphore when received alarm1 1 alarm (the alarm information to the screen output) When received alarm2 when the alarm 2 notify the child process via semaphore (alarm information to the screen output). Required to give the file makefile used by the compiler.
To Search:
File list (Check if you may need any files):
linux1\process3.o
......\process2.c
......\process1
......\helpfile.txt
......\process2.o
......\process1.o
......\process3.c
......\process2
......\process3
......\process1.c
......\makefile
linux1