From 54c165d7bbb65dcb9018d31d41ba1d76e2020a86 Mon Sep 17 00:00:00 2001 From: IcyFenix Date: Thu, 23 Sep 2021 10:12:35 +0800 Subject: [PATCH] Update ThreadDeadLockTestCase_2.java --- .../fenixsoft/jvm/chapter4/ThreadDeadLockTestCase_2.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/fenixsoft/jvm/chapter4/ThreadDeadLockTestCase_2.java b/src/org/fenixsoft/jvm/chapter4/ThreadDeadLockTestCase_2.java index efd5a11..3d916b0 100644 --- a/src/org/fenixsoft/jvm/chapter4/ThreadDeadLockTestCase_2.java +++ b/src/org/fenixsoft/jvm/chapter4/ThreadDeadLockTestCase_2.java @@ -8,9 +8,9 @@ public class ThreadDeadLockTestCase_2 { /** * 线程死锁等待演示 */ - static class SynAddRunnalbe implements Runnable { + static class SynAddRunnable implements Runnable { int a, b; - public SynAddRunnalbe(int a, int b) { + public SynAddRunnable(int a, int b) { this.a = a; this.b = b; } @@ -27,8 +27,8 @@ public class ThreadDeadLockTestCase_2 { public static void main(String[] args) { for (int i = 0; i < 100; i++) { - new Thread(new SynAddRunnalbe(1, 2)).start(); - new Thread(new SynAddRunnalbe(2, 1)).start(); + new Thread(new SynAddRunnable(1, 2)).start(); + new Thread(new SynAddRunnable(2, 1)).start(); } }