Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What is a race condition?
Think about how data can be affected by multiple threads.
What is one common cause of deadlock?
Consider how threads might wait on each other.
What is a race condition?
Think about shared resources.
Deadlock can be avoided by?
Consider resource management strategies.
Write a Java code snippet that might lead to a deadlock situation between two threads acquiring multiple locks. Explain why it leads to deadlock.
Think about how resources are locked and the order in which they are requested.
Design a threading model where starvation can occur and describe its implications. What strategies could be employed to minimize starvation?
Consider the scheduling policies in use.
5 more questions in this section. Enroll free to practise them all.
Enroll free