PRG 421 Week 4 Individual: Week Four Analyze Assignment

0 items
PRG 421 Week 4 Individual: Week Four Analyze Assignment
PRG 421 Week 4 Individual: Week Four Analyze Assignment
$6.00
  • Description

PRG 421 Week 4 Individual: Week Four Analyze Assignment

Resource:

 

“Analyzing a Multithreaded Program”

Deadlock occurs when no processing can occur because two processes that are waiting for each other to finish. For example, imagine that two processes need access to a file or database table row in order to complete, but both processes are attempting to access that resource at the same time. Neither process can complete without the other releasing access to the required resource, so the result is deadlock.

 

Read and analyze code in the linked document that spawns two different threads at the same time.

 

In a Microsoft® Word file, predict the results of executing the program, and identify whether a deadlock or starvation event will occur and, if so, at what point in the code.

 

Submit your Word file to the Assignment Files tab.