Eclipse中多线程的实现,类似这样
Job job = new Job("job1") {
protected IStatus run(IProgressMonitor monitor) {
//-----你自定义的东西
Job1 job1 = new Job1();
job1.run();
//-----------------
return Status.OK_STATUS;
}
};
job.setPriority(Job.SHORT);
job.schedule(); //start as soon as possible