OS chapter 6 ---synchronization
2016-03-07 19:07:45 0 举报
在操作系统的第六章中,我们深入探讨了同步的概念。同步是指两个或多个任务或进程协调工作,以确保它们按照预定的顺序执行。这是通过使用锁、信号量、条件变量等同步机制实现的。例如,当一个进程正在访问共享资源时,其他进程可能需要等待,直到该进程完成其操作。这就是所谓的互斥,它是同步的一个重要组成部分。此外,我们还讨论了死锁问题,即当两个或更多的进程无法继续前进时发生的条件。为了避免这种情况,我们需要设计有效的同步策略和协议。总的来说,同步是操作系统中一个关键的并发控制技术,它对于确保系统的稳定性和效率至关重要。
作者其他创作
大纲/内容
[race condition]
lock
a situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which the access take place
nonpreemptive kernels
hardware-based solution
semaphore
peterson's solution
preemptive kernels
requirements: mutual exclusive+progress+bounded waiting
the critical-section problem
process synchronization & coordination among cooperating processes
0 条评论
下一页