File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- Sample to a deadlock in Java Application
2- ===========================================
1+ Sample to show deadlocks in a Java Application
2+ ==============================================
33
44This sample application shows an example of a deadlock. Following is the definition of "deadlock" according to
55[ Java Tutorial] ( https://docs.oracle.com/javase/tutorial/essential/concurrency/deadlock.html )
@@ -10,7 +10,7 @@ In this application, there are two threads trying to acquire two locks.
1010
1111### How to run
1212
13- The application will throw Out of Memory error after some time when you run following command
13+ The application will throw Out of Memory error after some time when you run the application with default parameters.
1414
1515` java -Xms1g -Xmx1g -jar target/deadlock.jar `
1616
You can’t perform that action at this time.
0 commit comments