Showing posts with label Operating Systems. Show all posts
Showing posts with label Operating Systems. Show all posts

Tuesday, February 23, 2010

SEMAPHORES IN OPERATING SYSTEMS

DEFINITION OF SEMAPHORES:

Semaphores are the protected variables or abstract data types that controls several processes trying to access same resources.

There are two types of semaphores available

1: Binary semaphore :

It is a simple true or false flag that controls access to a single resource.

2: Counting semaphores:

It is counter for the set of available resources.