This is a simple Unix-based alarm clock written in C, for the course TDT4186 Operating Systems at NTNU spring 2022.
Run the program using ./compile_and_run.sh
.
- Run the program.
- Schedule an alarm by entering
s
. - Enter time in format
YYYY-MM-DD_HH:MM:SS
. - Observe that your alarm is created by entering
l
to list alarms. - Schedule additional alarms and observe that they are all listed, until the maximum amount of alarms (10) is reached.
- Observe that you are unable to schedule more than 10 alarms.
- Exit the program by typing
x
in the menu.
- Run the program.
- Schedule an alarm by entering
s
. - Enter time in format
YYYY-MM-DD_HH:MM:SS
. - Observe that your alarm is created by entering
l
to list alarms. - Enter
c
with the alarm number to cancel alarm - Observe that your alarm is cancelled by entering
l
to list alarms. - Exit the program by typing
x
in the menu.
- Run the program.
- Schedule an alarm by entering
s
. - Enter time in format
YYYY-MM-DD_HH:MM:SS
. - Listen for an alarm tone when the alarm time is reached.
- Exit the program by typing
x
in the menu.
- Open a second terminal window and run
top
to see processes. Processes marked with "Z" are zombies. Observe that there are no zombie processes. - In the primary terminal, run the program and schedule an alarm.
- Cancel the alarm with
c
using the alarm number. - Observe the zombie process in the
top
output. - Executing any new command, such as scheduling, listing or cancelling alarms, will catch and kill all existing zombies.
- Exit the program by typing
x
in the menu.