From 285f5d099ad6257f362197b63024a29d0b394c52 Mon Sep 17 00:00:00 2001 From: rep015 Date: Thu, 25 Oct 2018 14:47:41 -0400 Subject: [PATCH] Lab6/feedback added --- Labs/Lab6/feedback | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Labs/Lab6/feedback diff --git a/Labs/Lab6/feedback b/Labs/Lab6/feedback new file mode 100644 index 0000000..1bdd890 --- /dev/null +++ b/Labs/Lab6/feedback @@ -0,0 +1,41 @@ +------------------------------------------------------------ +Lab 6 -- Feedback +------------------------------------------------------------ + +Prelab: + Philosopher thinks, eats, and repeat 15/15 + Main creates 5 Philisopher threads 10/15 + -5: Only one philosopher is printed to the console. + All of the tids point to the same location so each + philosopher is pointing at the same tid. move the + variable declaration to insode the loop or create + an array of tids to avoid this issue. + +Problem 1: + No 2 Philisophers are eating at the same time 20/20 + output file exists 0/4 + -4: file is empty + what problems are observed (answers.txt) 3/3 + how could you deadlock? (answers.txt) 4/4 + + +Problem 2: + force deadlock consistently 12/12 + problem2.out shows deadlock 4/4 + describe your deadlock (answers.txt) 4/4 + +Problem 3: 20 + problem3-1 pick up based on parity 8/8 + problem3-2 pick up lowest first 8/8 + does this solve deadlock? (answers.txt) 4/4 + Note: Deadlock is when nothing can happen, a long wait time + followed by eventually being able to execute a process is + not deadlock but it is something that should be avoided when + possible. + +-5: No rules to make problem2, problem3-1, and problem3-2 + +------------------------------------------------------------ +TOTAL 86 / 100 +------------------------------------------------------------ + -- 2.24.1