Added assignment details

This commit is contained in:
Brychan Dempsey 2021-05-01 13:56:12 +12:00
parent 45e005eb4f
commit 175de8b626

View File

@ -1,3 +1,6 @@
/* Dempsey-Jensen, Brychan, 14299890, Assignment 2, 159.341 */
/* Use semaphores to prevent race conditions in a concurrent lift-simulator */
// --------------------------------------------------
// --- 159.341 Assignment 2 - Lift Simulator ---
// --------------------------------------------------
@ -534,6 +537,18 @@ void *update_floor_counts(void *p)
// --------------------------------------------------
int main()
{
// Intro stage:
printf("|------------------------------------------|\n");
printf("| 159.341 2021 Semester 1, Assignment 2 |\n");
printf("| Submitted by Brychan Dempsey, 14299890 |\n");
printf("|------------------------------------------|\n");
printf("\nPress \'enter\' to begin.");
char c;
do {
c = getchar();
//putchar (c);
} while (!(c == 10 || c == 12));
// Local variables
unsigned long i;
semaphore_create(&printSemaphore, 0);