操作系统的五次笔记:进程同步
发布时间
阅读量:
阅读量
目录
例题
基础理论
研究背景
基础理论
Peterson算法
硬件同步机制
信号量与PV操作:
管程结构
死锁与饥饿现象
例题
1.In Section 5.4, we mentioned that disabling interrupts frequently can affect the system’s clock. Explain why this can occur and how such effects can be minimized.
Answer:
系统时钟的更新依赖于时钟中断的触发(每次时钟中断都会进行一次更新)。如果在某一时间段内中断被禁用,系统时钟可能会因此丢失相应的时间信息。此外,系统时钟还用于任务调度,例如在轮转调度算法中用于时间片的计算。
为减少此类问题的发生,应尽量缩短对时钟中断禁用的时间长度。
**2.Explain why Windows, Linux, and Solaris implement multiple locking mechanisms. (多个锁定机制)Describe the circumstances under which they use spinlocks(自旋锁), mutex locks(互斥锁), semaphores(信号量), a
全部评论 (0)
还没有任何评论哟~
