Commit 285f5d09 authored by Ryan Pasculano's avatar Ryan Pasculano

Lab6/feedback added

parent b9873245
------------------------------------------------------------
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
------------------------------------------------------------
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment