|国家预印本平台
首页|JAVA多线程死锁预防机制研究

JAVA多线程死锁预防机制研究

Research on Dead Lock Precaution Mechanism of JAVA Multi-thread

中文摘要英文摘要

为了提高程序的运行效率,现在大部分程序开发过程中都使用多线程,但是多线程在提高效率的同时也容易发生死锁现象,从而给软件的安全性提出了较高的要求。文章详细阐述了多线程的工作机制,结合具体程序模型,深入分析了Java同步原因造成的死锁。系统地分析了Java并发线程中合理的解决lock饥饿和lock公平的重要性,给出了解决并发线程间潜在死锁的机制。

In order to improve the efficency of program,most programs are using multi-thread.Although it can improve the efficency,it can bring dead lock phenomenon.And this requires software has good security.This paper details the work mechanism of multi-thread with the special program model,while analyzes the result of dead lock caused by Java synchronized method.It also expounds the importance to solve lock starvation and lock fairness in reason of Java multi-thread and gives the mechanism to solve the dead lock in Java latency intercurrent program.

于宁宁、赵宗平

计算技术、计算机技术

死锁多线程lock饥饿lock公平

dead lockmulti-threadlock starvationlock fairness

于宁宁,赵宗平.JAVA多线程死锁预防机制研究[EB/OL].(2009-05-18)[2025-08-11].http://www.paper.edu.cn/releasepaper/content/200905-404.点此复制

评论