摘要
为了充分利用CPU,节省系统开支,优化程序结构,多线程技术是许多程序开发中主要采用的技术。但是由于多线程这种技术的并发执行的特性导致许多资源利用、数据维护等方面的问题出现,死锁、数据混乱也随之产生。线程同步与妥协处理机制可以较好的解决多线程使用过程中产生的问题。实验中采用了这两种方法后数据混乱、死锁等问题的出现几率大大降低。实验结论表明上面两种方法的使用可以很好的控制死锁、数据混乱的出现,具有良好的使用价值。
In order to fully use CPU capacity,save system cost,and optimize the program structure,a multi-thread technology is commonly used in many computer programs.However,the concurrent execution of multiple threads may result in the problems associated with the usage of many resources,and data maintenance,such as,deadlock and confusion data.Thread synchronization and compromise processing mechanism can solve the problems with multi-threaded applications.In the experimental study,after the application of these two techniques,the occurrence probability of data chaos,deadlock problem is greatly reduced.The experimental results show that the two methods proposed can better control the occurrences of data chaotic and deadlock problems.
出处
《辽宁工程技术大学学报(自然科学版)》
CAS
北大核心
2012年第5期654-658,共5页
Journal of Liaoning Technical University (Natural Science)
基金
中央高校基金资助项目(2011ZM0080)
关键词
死锁
数据混乱
线程同步
妥协处理机制
死锁状态
解锁
死锁线程
多线程
deadlock
data confusion
thread synchronization
thread handling mechanism compromise
deadlock state
unlock
deadlock thread
multithread