Last active
June 28, 2022 15:22
-
-
Save OMGZui/5709f56d032e1074dee64abcb87822d9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class medium01Test{ | |
public static void main(String[] args) { | |
SyncThread syncThread = new SyncThread(); | |
Thread F_thread1 = new Thread(new SyncThread(), "F_thread1"); | |
Thread F_thread2 = new Thread(new SyncThread(), "F_thread2"); | |
Thread F_thread3 = new Thread(syncThread, "F_thread3"); | |
Thread F_thread4 = new Thread(syncThread, "F_thread4"); | |
F_thread1.start(); | |
F_thread2.start(); | |
F_thread3.start(); | |
F_thread4.start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment