Homework 2, All Jokes Inside.
Short Description:
Write a program that demonstrates your ability to use system calls.
Goals
When you finish this homework, you should have:- Demonstrated a basic understanding of processes.
- Written programs that use fork, wait, signal and kill
Formal Description
Write a program that- Leader program
- Creates two child processes
- Repeatedly asks the user for one of three tasks they would like performed
- Tell a joke
- Tell a fortune
- Exit all processes
- Signals the appropriate child to perform the action.
- Exits when requested, but only after all child processes have exited.
- Child 1 should
- On SIGUSR1: print a joke to the screen.
- On SIGUSR2: exit
- Child 2 should
- On SIGUSR1: print a fortune to the screen.
- On SIGUSR2: exit
You may work in groups, but please
- List all of the group members in a README file.
- Each person still must submit their own copy of the work.
- List the AI and extent to which you used it in the README file
- If you used AI for more that 50% of your work please say so. You will receive full credit, but I will not grade the work.