module explaning use of semaphore.

 Here is a working example of how to make threads execute one after another using a semaphore.