public void start()
{   if(mythread==null){
mythread=new Thread();
                        *******************  new Thread(this);

解决方案 »

  1.   

    你要是通过实现runnable接口来操作多线程,调用的时候一定要新建一个线程:
    如:
    The other way to create a thread is to declare a class that implements the Runnable interface. That class then implements the run method. An instance of the class can then be allocated, passed as an argument when creating Thread, and started. The same example in this other style looks like the following: --------------------------------------------------------------------------------     class PrimeRun implements Runnable {
             long minPrime;
             PrimeRun(long minPrime) {
                 this.minPrime = minPrime;
             }
     
             public void run() {
                 // compute primes larger than minPrime
                  . . .
             }
         }
     
    --------------------------------------------------------------------------------The following code would then create a thread and start it running: 
         PrimeRun p = new PrimeRun(143);
         new Thread(p).start();