@@ -0,0 +1,869 @@
+package com.multithread.learning;  %0D%0A/** %0D%0A *@functon %DF%B3%D1%A7%CF%B0 %0D%0A */  %0D%0Aclass Thread1 extends Thread%7B  %0D%0A    private String name;  %0D%0A    public Thread1(String name) %7B  %0D%0A       this.name=name;  %0D%0A    %7D  %0D%0A    public void run() %7B  %0D%0A        for (int i = 0; i %3C 500; i++) %7B  %0D%0A            System.out.println(name + %22  :  %22 + i);  %0D%0A            try %7B%0D%0A            %09int sl =(int) (Math.random() * 1000f);%0D%0A            %09System.out.println(%22sleep for %22+sl+%22ms.............%22);%0D%0A                sleep(sl);  %0D%0A            %7D catch (InterruptedException e) %7B  %0D%0A                e.printStackTrace();  %0D%0A            %7D  %0D%0A        %7D  %0D%0A         %0D%0A    %7D  %0D%0A%7D%0D%0A%0D%0Apublic class Main %7B  %0D%0A%09  %0D%0A    public static void main(String%5B%5D args) %7B  %0D%0A        Thread1 mTh1=new Thread1(%22A%22);  %0D%0A        Thread1 mTh2=new Thread1(%22B%22);  %0D%0A        mTh1.start();  %0D%0A        mTh2.start();  %0D%0A  %0D%0A    %7D  %0D%0A  %0D%0A%7D

add learning