# Semaphore

tracks only _how many_ resources are free; not _which_ of the resources are free.To select can use more semaphores or something else

a **semaphore** is var to control access to multithreaded apps

Can have int **counting semaphores** or **binary semaphores**

used to implement locks
