semaphore 的同步功能是所有系統都支援的,而mutex能否由其他程序釋放則未定,因此建議mutex只用於保護critical section。而semaphore則用於保護某變數, ...
確定! 回上一頁