亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1681 | 回復: 3
打印 上一主題 下一主題

ULK2中信號量的問題 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2006-04-12 13:24 |只看該作者 |倒序瀏覽
請教給位老大:ULK2中描述信號量獲取的__down()函數時,回喚醒另一個等待進程,如果說喚醒另一個進程只是為了設置count和sleepers字段,那and terminates holding the semaphore這句話是什么意思?為什么要中止所持有的信號量?

原文如下:If the count field is not negative, the function sets sleepers to 0 and exits from the loop. It tries to wake up another process in the semaphore wait queue (but in our scenario, the queue is now empty) and terminates holding the semaphore. On exit, both the count field and the sleepers field are set to 0, as required when the semaphore is closed but no process is waiting for it.

論壇徽章:
0
2 [報告]
發(fā)表于 2006-04-13 10:44 |只看該作者
terminates holding the semaphore

這句話很清楚啊: 終止對這個信號量的占用.

論壇徽章:
0
3 [報告]
發(fā)表于 2006-04-13 13:13 |只看該作者
原帖由 xiaozhaoz 于 2006-4-13 10:44 發(fā)表
terminates holding the semaphore

這句話很清楚啊: 終止對這個信號量的占用.


還在down操作中啊,臨界區(qū)都還沒進,怎么就中止持有信號量了呢?

論壇徽章:
0
4 [報告]
發(fā)表于 2006-04-17 19:53 |只看該作者
沉了啊,頂起來
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP