semaphore
US /ˈsem.ə.fɔːr/
UK /ˈsem.ə.fɔːr/
名词
1.
旗语, 信号系统
a system of sending messages by holding two flags in certain positions according to a code
示例:
•
Sailors used semaphore to communicate between ships.
水手们使用旗语在船只之间进行通信。
•
The old lighthouse used a form of semaphore to warn ships of danger.
旧灯塔使用一种旗语形式来警告船只危险。
2.
信号量 (计算机), 同步机制
(in computing) a variable or abstract data type used to control access to a common resource by multiple processes and avoid critical section problems in a concurrent system such as a multitasking operating system
示例:
•
The operating system uses a semaphore to manage access to shared memory.
操作系统使用信号量来管理对共享内存的访问。
•
Understanding semaphores is crucial for concurrent programming.
理解信号量对于并发编程至关重要。
动词
用旗语发送, 用信号量发送
send (a message) by semaphore
示例:
•
They tried to semaphore a warning to the distant ship.
他们试图向远处的船只发送旗语警告。
•
Can you semaphore the message to the other side of the field?
你能把信息用旗语发送到场地的另一边吗?