1 / 21
文档名称:

毕业设计(论文)-JAVA多线程同步机制及其应用.doc

格式:doc   页数:21
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

毕业设计(论文)-JAVA多线程同步机制及其应用.doc

上传人:3346389411 2013/10/31 文件大小:0 KB

下载得到文件列表

毕业设计(论文)-JAVA多线程同步机制及其应用.doc

文档介绍

文档介绍:目录
JAVA多线程同步机制及其应用 1
1 前言 2
线程 2
同步机制 2
2 JAVA多线程 3
线程的创建 3
继承Thread类实现多线程 3
实现Runnable接口实现多线程 3
线程管理 4
线程周期 4
线程控制 4
线程的调度 5
3 多线程同步机制 6
多线程的问题 6
JAVA同步机制 8
synchronized关键字 8
synchronized方法 10
同步机制的问题 11
wait()/notify()方法 13
4 交通灯管理系统 14
设计方法 14
具体实现 15
主要功能及类介绍 15
5 结束语 16
致谢 16
参考文献 17
附录 18
JAVA多线程同步机制及其应用
摘要介绍了JAVA线程的概念,分析了多线程和同步机制。给出了创建线程的两种方法:继承Thread类和实现runnable接口及其基本格式。详细分析了线程周期中的五种状态;线程的控制的几种基本的方法start(),stop(),sleep()等;线程的调度、优先级。结合具体实例指出了多线程存在的一些问题,探讨了实现JAVA同步机制的两种方法:synchronized关键字和synchronzied方法。给出了解决假同步和死锁的方法。介绍了多线程间通信的一种方法:wait()/notify()方法,以及该方法的主要格式,应用范围,和应用要注意的事项。通过一个具体的综合应用的实例,说明多线程在实际中的应用。
关键词多线程;同步机制;线程;线程控制;死锁
JAVA multithreading synchronized mechanism and applications
Abstract Introduced the concept of the JAVA Thread, analyze a multi-threading and the synchronized mechanism. Give establish the Thread of two kinds of methods inherit Thread and realize runnable interface and its basic format. To five kinds of state in the Thread, a few basic method of the control of the Thread, start(), stop() sleep() etc., the Thread attemper, PRI,make concrete introduction. With a concrete example to explain a little bit existent problems of multi-threadings, give the concrete contents of synchronized mechanism, two kinds of basic realizations are synchronized method and the basic format of the synchronized key word and the synchronzied method. Discussed two kinds of problems of JAVA synchronized mechanism: False synchronized and deadlock, and give understand the suggestion of these two kinds of problems definitely. Introduced a kind of method for multi-munications: Wait()/notify() method, and the main format of that method, the application, and notice with application of item. Application passed a solid example of prehensive application, explained a multi-threading Application in physically.
Keyword multi-threading;synchronized mechanism

最近更新

急救护理中的急救转运 38页

2024年清水河县幼儿园教师招教考试备考题库及.. 30页

2024年湖北省直属机关业余大学马克思主义基本.. 13页

2024年湖南省(147所)马克思主义基本原理概论.. 13页

2024年潇湘职业学院马克思主义基本原理概论期.. 13页

2024年石家庄工程职业学院马克思主义基本原理.. 12页

2024年福建商学院马克思主义基本原理概论期末.. 12页

2024年绍兴理工学院马克思主义基本原理概论期.. 13页

2024年芜湖学院马克思主义基本原理概论期末考.. 12页

2024年菏泽职业学院马克思主义基本原理概论期.. 12页

2024年西交利物浦大学马克思主义基本原理概论.. 12页

2024年贵阳职业技术学院马克思主义基本原理概.. 12页

2024年辽宁科技大学马克思主义基本原理概论期.. 12页

2024年遵义县幼儿园教师招教考试备考题库带答.. 30页

2024年郸城县招教考试备考题库附答案解析 30页

2024年重庆青年职业技术学院马克思主义基本原.. 12页

2024年长城铝业公司职工工学院马克思主义基本.. 13页

2024年陕西学前师范学院马克思主义基本原理概.. 13页

2024年青岛航空科技职业学院马克思主义基本原.. 12页

2024年黑河学院马克思主义基本原理概论期末考.. 12页

2024年龙陵县招教考试备考题库及答案解析(必.. 30页

高效渲染技术 38页

高速精密加工技术-第2篇 36页

2025年中原科技学院马克思主义基本原理概论期.. 13页

2025年临桂县幼儿园教师招教考试备考题库及答.. 31页

2025年乌鲁木齐职业技术学院马克思主义基本原.. 13页

2025年云南水利水电职业学院单招职业适应性测.. 47页

2025年六安职业技术学院单招职业技能测试题库.. 43页

2025年内蒙古体育职业学院马克思主义基本原理.. 12页

绿色建材政策影响分析 35页