National Institute of Standards and Technology
Package illustrating a test case

Test case 145799

Description

Demonstrates a deadlock caused by synchronized methods in objects that call one another in a Servlet. Servlets are inherently multithreaded, so we dont need to actually start threads in the bad() and goodX() functions. Implementation based on http://download.oracle.com/javase/tutorial/essential/concurrency/deadlock.html.

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.