摘要
本文从线程的概念及特点、多线程和多进程的区别以及死锁等基本原理出发,论述Java语言中的多线程机制——线程调度模式、同步互斥机制以及内置多线程功能,并对线程的状态、创建和控制方法以及避免死锁的方法作了深入的探讨。
Based on the basic theories of thread such as thread concept and characters,the difference between multi-processes and multi-threads and deadlock concept,this paper introduces multithreading mechanism in Java,including scheduling model,synchronization mechanism and multithreading function,and discusses thread status,creating and control thread method and the way how to avoid deadlock.
出处
《现代计算机》
2002年第2期20-22,41,共4页
Modern Computer