Added assignment details
This commit is contained in:
parent
45e005eb4f
commit
175de8b626
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user