正在加载图片...
Critical-Section(临界区) 。Critical Resources(l临界资源: 在一段时间内只允许一个进程访问的资源 。Critical Section(CS,临界区): a segment of code,access and may change shared data(critical resources) Make sure,that any two processes will not execute in its own CSes at the same time o the CS problem is to design a protocol that the processes can use to cooperate. do entry section (each process must request permission to enter its CS) critical section exit section remainder section )while (TRUE) 陈适兰xlanchen@ustc.edu.cn http:/staf.u01174O1:Operating System操作系统原理 March29,201912/57. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Critical-Section (临界区) Critical Resources(临界资源): 在一段时间内只允许一个进程访问的资源 Critical Section (CS, 临界区): a segment of code, access and may change shared data (critical resources) ▶ Make sure, that any two processes will not execute in its own CSes at the same time the CS problem is to design a protocol that the processes can use to cooperate. do { entry section (each process must request permission to enter its CS) critical section exit section remainder section }while (TRUE) 陈香兰 xlanchen@ustc.edu.cn http://staff.ustc.edu.cn/~xlanchen (Computer Application Laboratory, CS, USTC @ Hefei Embedded System Laboratory, CS, USTC @ Suzhou) 0117401: Operating System 操作系统原理与设计 March 29, 2019 12 / 57
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有