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
lto 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
xin 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
lto list alarms. - Enter
cwith the alarm number to cancel alarm - Observe that your alarm is cancelled by entering
lto list alarms. - Exit the program by typing
xin 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
xin the menu.
- Open a second terminal window and run
topto 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
cusing the alarm number. - Observe the zombie process in the
topoutput. - Executing any new command, such as scheduling, listing or cancelling alarms, will catch and kill all existing zombies.
- Exit the program by typing
xin the menu.