package lp_2018_02_09_01;
public class thread01 extends Thread{
public void run() {
int number=0;
while(1==1) {
System.out.print("01");
number ++;
for (int i=0;i<1000000;i++) {
;
}
if (number == 100) {
number = 0;
System.out.println();
}
}
}
}
package lp_2018_02_09_01;
public class thread02 extends Thread {
public void run() {
while(2==2) {
int number=0;
while(1==1) {
System.out.print("02 ");
number ++;
for (int i=0;i<1000000;i++) {
;
}
if (number == 100) {
number = 0;
System.out.println();
}
}
}
}
}
package lp_2018_02_09_01;
public class Domon {
public static void main(String [] args) {
thread01 lp_a = new thread01();
thread02 lp_b = new thread02();
//lp_a.run();
//lp_b.run();
lp_a.start();
lp_b.start();
}
}