你说的方法是Thread类的。这是他自己定义的方法 public void start()Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread. The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
A class that implements Runnable can run without subclassing Thread by instantiating a Thread instance and passing itself in as the target。 这是api文档中的原话。 看看jdk的文档。
IDataSource ds = new Snmp_DS(); new Thread(ds).start();
public void start()Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread. The result is that two threads are running concurrently: the current thread (which returns from the call to the start method) and the other thread (which executes its run method).
这是api文档中的原话。
看看jdk的文档。
new Thread(ds).start();