一道关于操作系统的题目,是临界区问题还是信号量问题?请写出代码?谢谢

Thereisonlyonesingle-logbridge(独木桥)overtheriverconnectingthewestandtheeast.Ifthereiss... There is only one single-log bridge(独木桥) over the river connecting the west and the east.If there is some one on the bridge, people from other direction must wait until there is no person on the bridge.While if several people go the same direction,they can pass through at the same time. Write a code sketch for two kinds of people,people from west to east and people from east to west,which follows the given rules and guarantees that two kinds of people are never on the bridge at the same time using semaphores. 展开
cj7749910
2014-05-22 · TA获得超过246个赞
知道小有建树答主
回答量:193
采纳率:0%
帮助的人:115万
展开全部
信号量问题啊
创安恒业-动环监控
2024-08-01 广告
变电站远程巡视系统的主要功能包括实时监控变电站设备状态、数据分析与预警、智能巡视任务分配等。其优势在于自动化程度高,能够实时、准确地监控设备状态,快速发现潜在故障;同时,远程操作减少了人员现场巡视的风险和成本,提高了工作效率和安全性。此外,... 点击进入详情页
本回答由创安恒业-动环监控提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式