Question:
what is Semaphore?
j_emmans
2007-05-27 03:22:01 UTC
what is Semaphore?
Twelve answers:
motown
2007-05-27 03:30:48 UTC
its a code used by the navy and other pleasure craft.



each letter or number has a certain way in which two flags must be held. So by moving the flags to different positions you can create words.



Sea phrases like man overoard! have completely different symbols in their own right so all ships can quickly know someones in the water etc.
naomi
2016-05-19 03:43:03 UTC
A semaphore is a protected variable (or abstract data type) and constitutes the classic method for restricting access to equivalent shared resources (e.g. storage) in a multiprogramming environment. They were invented by Edsger Dijkstra and first used in the THE operating system. The value of the semaphore is initialized to the number of equivalent shared resources it is implemented to control. In the special case where there is a single equivalent shared resource, the semaphore is called a binary semaphore. The general case semaphore is often called a counting semaphore. Semaphores are the classic solution to the dining philosophers problem, although they do not prevent all deadlocks. Semaphores can only be accessed using the following operations: P(Semaphore s) { await s > 0, then s := s-1; /* must be atomic once s > 0 is detected */ } V(Semaphore s) { s := s+1; /* must be atomic */ } Init(Semaphore s, Integer v) { s := v; } Notice that incrementing the variable s must not be interrupted, and the P operation must not be interrupted after s is found to be nonzero. This can be done by special instruction (if the architecture's instruction set supports it) or by ignoring interrupts in order to prevent other processes from becoming active. The canonical names P and V come from the initials of Dutch words. V stands for verhoog, or "increase." Several explanations have been given for P (including passeer "pass," probeer "try," and pakken "grab"), but in fact Dijkstra wrote that he intended P to stand for the made-up portmanteau word prolaag,[1] short for probeer te verlagen, or "try-and-decrease."[2][3] (A less ambiguous English translation would be "try-to-decrease.") This confusion stems from the unfortunate characteristic of the Dutch language that the words for increase and decrease both begin with the letter V, and the words spelled out in full would be impossibly confusing for non–Dutch-speakers. The value of a semaphore is the number of units of the resource which are free. (If there is only one resource, a "binary semaphore" with values 0 or 1 is used.) The P operation busy-waits (or maybe sleeps) until a resource is available, whereupon it immediately claims one. V is the inverse; it simply makes a resource available again after the process has finished using it. Init is only used to initialize the semaphore before any requests are made. The P and V operations must be atomic, which means that no process may ever be preempted in the middle of one of those operations to run another operation on the same semaphore. In English textbooks, and in the programming language ALGOL 68, the P and V operations are sometimes called, respectively, down and up. In software engineering practice they are called wait and signal, or take and release, or pend and post. To avoid busy-waiting, a semaphore may have an associated queue of processes (usually a FIFO). If a process performs a P operation on a semaphore which has the value zero, the process is added to the semaphore's queue. When another process increments the semaphore by performing a V operation, and there are processes on the queue, one of them is removed from the queue and resumes execution.
Bruce N
2007-05-27 03:33:05 UTC
If you really want to know...



Semaphore is technically the use of any optical device to signal a message. However, Navies use it as a means of communicating silently between ships at close distances. Each ship has a signalman who has a flag in each hand. The position of the flags each indicate a letter, or in some cases, a meaning. Check out the link if you really want to learn Semaphore. It is a dying art.
anonymous
2007-05-27 03:32:04 UTC
Semaphore is a system of communicating over distance by flags held in certain positions to represent letters or words. It was most commonly used in the navy before electronic communibations were invented.
John G
2007-05-27 03:32:13 UTC
A signalling system using hand held flags denoting the alphabet. Used at sea in the sailing ship days for close communication. Napoleon's forces used it on a giant scale from towers set across the landscape. Last taught as a skill to the Scouting movement and probably still is. I was taught it in the RN in the fifties.
franja
2007-05-27 06:48:03 UTC
Either a system of communication using flags... or something said during a game of cards... Did you semaphore when you played that five? ;o]
The Tenth Duke of Chalfont
2007-05-27 03:32:18 UTC
A method of communicating using flags or lights. Similar to morse code in radio, each letter of the alphabet has a corresponding flag position or series of light flashes.



Alternatively it is the older style of railway signalling.
anonymous
2007-05-27 03:34:07 UTC
A system of signalling using the arms or two flags in certain positions to indicate letters of the alphabet
david c
2007-05-27 03:35:35 UTC
It is used to communicate to others in code.

Therefore ...---... =SOS.

It was used during the war to send messages to another military brigade or other ship so that no one could see the information quickly.

It can also be used to tap on say an iron part of a ship with another hard object to send information to other parts (say a jail where prisoners are locked up(they can send to each other )by tapping the above on the hull of the ship,an can be worked out with the other person listening to the noise frequency.

I hope that helps.
Adam J
2007-05-27 03:30:27 UTC
It's a method of signalling messages using flags--it was commonly used on ships before the invention of the radio.
?
2007-05-27 03:30:58 UTC
It's a way of signalling using a pair of flags.
Martyn A
2007-05-27 03:25:42 UTC
A bit like a semicolon but more of them.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...