摘要
在介绍操作系统中引入多线程的原因后,介绍了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.
出处
《安庆师范学院学报(自然科学版)》
2011年第4期106-110,共5页
Journal of Anqing Teachers College(Natural Science Edition)
基金
安徽省高校自然科学基金项目(KJ2010B096)
安庆师范学院青年科研基金(KJ201112)资助
关键词
JAVA
多线程
同步
互斥
java
multithread
synchronization
mutual exclusion