Q1. What causes a deadlock and how do you prevent it?
A deadlock needs four conditions: mutual exclusion, hold-and-wait, no preemption and circular wait. Classic case: thread A locks X then waits for Y while thread B locks Y...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (5 available).
A deadlock needs four conditions: mutual exclusion, hold-and-wait, no preemption and circular wait. Classic case: thread A locks X then waits for Y while thread B locks Y...
A deadlock is a set of threads each waiting for a resource held by another, so none can proceed. Four Coffman conditions must all hold: mutual exclusion, hold and wait, n...
A database deadlock is a cycle where two or more transactions each hold a lock the other needs, so neither can proceed. ```text T1: UPDATE a; UPDATE b; T2: UPDATE b; UPDA...
A classic deadlock happens in UI applications and classic ASP.NET when you block synchronously on async code with `.Result` or `.Wait()`. The awaited task wants to resume...
The Banker's algorithm grants a resource request only if the resulting state is safe, meaning some order exists in which all processes can finish. Inputs are the maximum ...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.