Skip to content

Instantly share code, notes, and snippets.

@amossnippet
amossnippet / wait_notify.java
Last active December 20, 2015 04:19 — forked from teloon/wait_notify.java
Java: MultiThread
public class MultiThread {
public static void main(String[] args) {
new Thread(new Thread1()).start();
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
new Thread(new Thread2()).start();
}