Alex Rivera | Logout

What is a semaphore?

Asked 2008-08-29T15:58:15.957
463

A semaphore is a programming concept that is frequently used to solve multi-threading problems. My question to the community:

What is a semaphore and how do you use it?

Edit
Report

1 Answer

3

A hardware or software flag. In multi tasking systems , a semaphore is as variable with a value that indicates the status of a common resource.A process needing the resource checks the semaphore to determine the resources status and then decides how to proceed.

answered 2011-05-12T08:40:27.013

Your Answer