操作系统:原理与实现
Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
实现信号量时,do...while和while有什么区别?
ydliou
在读书过程中,没有弄明白为什么用
do...while
能避免无限等待。如果真的用
do...while
,线程1不一样可以在线程0被唤醒前抢到资源吗?