CS 3733 Operating Systems Classroom Activity on Signals
- Log on to your Linux account.
- Run ~srobbins/cr3733 and log your progress on this activity.
- Make a directory called ch08.
- Download the USP Chapter 8 tar file from here.
- Untar the program into your ch08 directory.
- Execute convertlinux in this directory.
- Execute make in this directory.
- Execute:
    blocktest 100000000.
The parameter is 100 million.
If you use a value that is too small, there will be little time
between the messages.
This value will give you about 4 seconds between them using our current
hardware.
You can double this value if you want more time.
- Try pushing CTRL-C while the signal is blocked and while it is not.
- Modify blocktest.c so that it prints its process id when it starts.
- Run the program again, now sending the SIGINT signal from another terminal
window.
    kill -INT pid
- Also try sending SIGTERM (the default) from another window while the signal is blocked. What happens?
- Modify blocktest.c so that it calls sigfillset instead of sigaddset.
- Again try sending SIGTERM from another window while the signal is blocked.
What happens?
- Now try sending SIGKILL while the signal is blocked. What happens?