- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Module 7 Process Synchronization - Yale University:模块7进程同步-耶鲁大学
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Java Synchronization Rather than synchronizing an entire method, Block synchronization allows blocks of code to be declared as synchronized Java Synchronization Block synchronization using wait()/notify() Concurrency Features in Java 5 Prior to Java 5, the only concurrency features in Java were Using synchronized/wait/notify. Beginning with Java 5, new features were added to the API: Reentrant Locks Semaphores Condition Variables Concurrency Features in Java 5 Reentrant Locks Concurrency Features in Java 5 Semaphores Concurrency Features in Java 5 A condition variable is created by first creating a ReentrantLock and invoking its newCondition() method: Once this is done, it is possible to invoke the await() and signal() methods Concurrency Features in Java 5 doWork() method with condition variables Synchronization Examples Solaris Windows XP Linux Pthreads Solaris Synchronization Implements a variety of locks to support multitasking, multithreading (including real-time threads), and multiprocessing Uses adaptive mutexes for efficiency when protecting data from short code segments Uses condition variables and readers-writers locks when longer sections of code need access to data Uses turnstiles to order the list of threads waiting to acquire either an adaptive mutex or reader-writer lock Windows XP Synchronization Uses interrupt masks to protect access to global resources on uniprocessor systems Uses spinlocks on multiprocessor systems Also provides dispatcher objects which may act as either mutexes and semaphores Dispatcher objects may also provide events An event acts much like a condition variable Linux Synchronization Linux: Prior to kernel Version 2.6, disables interrupts to implement short critical sections Version 2.6 and later, fully preemptive Linux provides: semaphores sp
您可能关注的文档
- lect_10_3X 射线的晶体衍射.ppt
- LED行业废水处理培训资料[修改版].ppt
- Ligasure(结扎速血管闭合系统)在痔疮切除中应用(点击下载病例.pptx
- listening skill 六级听力技能.ppt
- ln老年发展心理学(论文资料).ppt
- Lecture 3 - 陕西师范大学本科教学质量与教学改革工程.ppt
- listen up 听力教材体系介绍[整理版].ppt
- l欣赏与批评.ppt
- l赞美与批评 .ppt
- M3U3 READING 阅读课件----吴智.ppt
- Molecular genetics of gene expression - University of :基因表达的分子遗传学大学.ppt
- Molecular genetics of gene expression:基因表达的分子遗传学.ppt
- Moodle平台在信息技术课堂教学中的运用..ppt
- Molecular genetics of gene expression - UT K:基因表达的分子遗传学UT K.ppt
- Motivation and Emotion - Welcome to AP Psychology - Home动机和情绪心理学家欢迎.ppt
- Motivation - The People of Geology & Geophysics - Yale University动机-地质与地球物理的人;耶鲁大学.ppt
- MPA教育与新型公共管理者的培养 ——为什么要 bb - 厦门大学研究生院.ppt
- MRI(磁共振)的学习幻灯片.ppt
- mri基本原理-课件.ppt
- MSSNUPE(甲基化敏感的单核苷酸扩增).ppt
原创力文档


文档评论(0)