Looking for ОПЕРАЦИОННИ СИСТЕМИ 2025/2026 (ИСН) test answers and solutions? Browse our comprehensive collection of verified answers for ОПЕРАЦИОННИ СИСТЕМИ 2025/2026 (ИСН) at fpmi.bg.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Two threads, T1 and T2, are executing in parallel. Can a deadlock occur? Justify your answer.
void thread1() {
lock(A);
...
lock(B);
...
unlock(B);
unlock(A);
}
void thread2() {
lock(B);
...
lock(A);
...
unlock(A);
unlock(B);
}