安庆师范学院学报:自然科学版
安慶師範學院學報:自然科學版
안경사범학원학보:자연과학판
Journal of Anqing Teachers College(Natural Science Edition)
2011年
4期
106-110
,共5页
Java%多线程%同步%互斥
Java%多線程%同步%互斥
Java%다선정%동보%호척
java%multithread%synchronization%mutual exclusion
在介绍操作系统中引入多线程的原因后,介绍了Java语言中的多线程机制和编程实现方案,介绍了线程同步互斥机制,并用经典操作系统进程同步互斥算法实现程序,演示如何编写Java并发程序。
在介紹操作繫統中引入多線程的原因後,介紹瞭Java語言中的多線程機製和編程實現方案,介紹瞭線程同步互斥機製,併用經典操作繫統進程同步互斥算法實現程序,縯示如何編寫Java併髮程序。
재개소조작계통중인입다선정적원인후,개소료Java어언중적다선정궤제화편정실현방안,개소료선정동보호척궤제,병용경전조작계통진정동보호척산법실현정서,연시여하편사Java병발정서。
After introducing the reason why multithread is need to use in operating system,the mechanism and realization of multithread in Java program language are introduced.Then the scheme of thread synchronization and mutual exclusion are also explained in this paper.Moreover,a segment program is implemented simulated by the classical algorithm of process synchronization and mutual exclusion in operating system.At last,how to write Java concurrent program is presented.