3 Replies Latest reply on Mar 3, 2009 4:55 PM by 807588

    can thread just execute the last one?

    807588
      i have a thread tat use more then one, but i just want to execute the last thread that i use, is it possible or not?

      illustration:
      class thread_a;
      ----------------------------
      
      new thread_a().start; // first thread
      thread.sleep(2000);
      new thread_a().start; // second thread
      after 2 minutes the second thread is execute, is it possible or not to ignore first thread (not change any values) while second thread is running? so just second thread can change the values