題組內容

四、假設我們可以在程式中宣告 semaphore 變數,而且我們有下列兩個系統程序。 sem_wait(semaphore s) sem_signal(semaphore s)

⑵請問這兩個程序的功能為何?(8 分)