摘要
进程同步包括进程的互斥和进程的同步两个方面,是操作系统管理共享资源的一种手段.用PV操作解决进程同步问题时首先应确定问题是属于进程互斥还是进程同步,或是互斥与同步的混合问题,然后根据共享资源的数量以及使用共享资源的规则正确的定义信号量及其初值.合理运用PV操作可以防止进程死锁,给出分析进程同步与互斥的方法及如何编制程序.
The process synchronization includes two fields of process incompatibility and process synchronization.First we should make sure whether the problems belong to process incompatibility or process synchronization,or mixing problems of incompatibility and synchronization while solving the problem of process synchronization with the P,V operation.Then we should apply P,V operation reasionably in case processing deadlock according to the number,rules of sharing resources,correct number of definition signal and the original value.
出处
《沈阳师范大学学报(自然科学版)》
CAS
2005年第1期51-53,共3页
Journal of Shenyang Normal University:Natural Science Edition
关键词
进程
同步
互斥
临界资源
P操作
V操作
process
synchronization
incompatibility
critical resources
P operation
V operation