1 Computer: P(mutex),P(Q),P(R) | Science: P(Q)(sleeps) (1st Diagram)
2. Computer: P(mutex),P(Q),P(R) | Science: P(Q)(sleeps) | Computer: V(Q),V(mutex) | Science: P(Q),P(R)(sleeps) | Computer: P(Q)(sleeps) (2nd Diagram)
As we can see deadlock exists.
Since there is a deadlock, there is starvation, as deadlock is a infinite waiting.
Answer: Both deadlock and starvation