Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Install and analyze the execution of the given Java program for Deadlock Simulator by performing the following tasks: Tasks: 1) Run the deadlock simulator using

Install and analyze the execution of the given Java program for Deadlock Simulator by performing the following tasks: Tasks:

1) Run the deadlock simulator using the following command: a 2 1 Use the step button to execute each cycle of the simulation and observe the effect on the resources and processes. Explain all the activities.

2) Modify the program to show error message dialog, using JOptionPane, when a deadlock occurs as shown below, and have the deadlock manager to kill a process and deallocate its resources so that the others can continue.

3) Try running the deadlock simulator using the following command: a 2 2 Explain why a deadlock does not occur?

4) There are two additional process command files ("b0.dat" and "b1.dat") in the distribution. Run the deadlock simulator with this command: b 2 1 1 Explain all the activities.

5) Try the following command: b 2 1 2 Explain why does the command in part (4) result in a deadlock but part (5) does not? Explain your answer in terms of what is going on in the process command files, b0.dat and b1.dat. 6) Add three processes by creating new command files ("b2.dat", "b3.dat" and "b4.dat") to examine the deadlock simulator for five processes. Run the simulator and show at least four different cases (with and without deadlock).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

please help with homework attached had to screen shot questions

Answered: 1 week ago