@@ -0,0 +1,10 @@
+public class Main {
+ public static void main (String argv[]) {
+ Thread t1, t2;
+ t1 = new DispTask();
+ t2 = new DispTask();
+
+ t1.start();
+ t2.start();
+ }
+}
@@ -0,0 +1,8 @@
+class DispTask extends Thread {
+ public void run() {
+ for (int i = 0; i < 10; i++) {
+ System.out.println(i);
+ // yield();