文章目录 信号量 wait 操作 signal 操作 信号量 type semaphore = recoed; count: integer; queue: list of process; end; var s: semaphore; wait 操作 wait(s): s.count := s.count -