package s1211线程创建; |
public class Xc extends Thread{ |
public static void main(String[] args) { |
new Xc().start(); |
|
for ( int j= 0 ;j< 1200 ;j++) |
System.out.println( "主函数" ); |
|
} |
|
public void run() |
{ |
for ( int i= 0 ;i< 1200 ;i++) |
System.out.println( "子函数" ); |
} |
} |