diff --git a/src/main/java/woowa/team4/bff/review/ReviewThis.java b/src/main/java/woowa/team4/bff/review/ReviewThis.java new file mode 100644 index 00000000..259274ae --- /dev/null +++ b/src/main/java/woowa/team4/bff/review/ReviewThis.java @@ -0,0 +1,20 @@ +package woowa.team4.bff.review; + +public class ReviewThis { + + private static int value = 0; + private static boolean flag = false; + + public static void main(String[] args) { + new Thread(() -> { + while (!flag) { + } + System.out.println("value: " + value); + }).start(); + + new Thread(() -> { + value = 42; + flag = true; + }).start(); + } +}