Consider the case of a home construction company with two application programs,purchasing (P1) and sales (P2) ,which are active at the same time.They each need to access two files,inventory (F1) and suppliers (F2) ,to update daily transactions.The following series of events will cause a deadlock.Fill in the missing event in the sequence.
1) Purchasing (P1) accesses the supplier file (F2) .
2) Sales (P2) accesses the inventory file (F1) .
3) Purchasing (P1) doesn't release the supplier file (F2) and requests the inventory file (F1) ,but P1 is blocked because F1 is being held by P2.
4) Meanwhile,____
A) sales (P2) doesn't release the inventory file (F1) but requests the supplier file (F2)
B) sales (P2) does release the inventory file (F1) and then requests the supplier file (F2)
C) purchasing (P1) does release the supplier file (F2) which is then requested by sales (P2)
D) purchasing (P1) exits
Correct Answer:
Verified
Q18: Database locking should be done only at
Q19: Deadlock is a system-wide tangle of resource
Q20: Once starvation has been detected,an algorithm can
Q21: In printing systems using _,a disk accepts
Q22: Which of the following is the first
Q24: _ developed the Banker's Algorithm.
A) Havender
B) Holt
C)
Q25: In _ systems,deadlocks can cause critical situations.
A)
Q26: Deadlock can occur on a printer when
Q27: The Banker's Algorithm is an example of
Q28: Fill in the missing event that causes
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents