A data structure that is used for intertask synchronization. Semaphores are usually provided by the operating system.用于进程间同步的数据结构。信号灯常常由操作系统提供。