摘要
多线程编程是Java语言的一个重要特色 ,它使Java程序可同时进行多路运行 ,支持多任务并进行处理 ,可充分利用系统资源 ,提高程序的执行效率。本文在说明进程、线程的基本慨念后 ,还介绍了线程的状态 ,多线程的调度原则 ,并详细讨论了实现多线程的两种途经 :重载Thread类的run()方法和Runnable接口的run()方法 ,它们都具有相同的功能和作用。
It makes Java's program can be carried on at the same time many kinds of operatings to an important characteristic of multithreading volume Cheng Shi Java's language , and support the multitasking parallel processing , and can fully use the system resource , and raises the execution efficiency of program . This text is after the basic indignant thought of explanation process and thread range , and has still introduced the state of the thread range , dispatch principle of multithreading . Auspicious has carefully discussed to realize multithreading two kinds by way of : The run() of heavy load Thread method and the run() of Runnable's interface method , they all possesses the identical merit can with act on . Finally still introduce the grouping management method of multithreading .
出处
《达县师范高等专科学校学报》
2003年第2期47-49,共3页
Journal of Daxian Teachers College