** Taken from Core Web Programming from
* Prentice Hall and Sun Microsystems Press,
* © 2001 Marty Hall and Larry Brown;
* may be freely used or adapted.
*/
public class DriverClass extends SomeClass {
...
public void startAThread() {
// Create a Thread object.
ThreadClass thread = new ThreadClass();
// Start it in a separate process.
thread.start();
...
}
}
Similar Posts
Machine Learning, Big Data, Data Science, Analytics, Cloud, Security, AI, Robotics, Database, BI, Development: Software, Web, Mobile