What is a semaphore, Operating System

What is a semaphore?

A semaphore 'S' is a synchronization tool which is  an integer value that, apart from initialization, is accessed only by two standard atomic operations; wait and signal .Semaphores can be used to deal with the n-process critical section problem. It can be also used to resolve various Synchronization problems.


Posted Date: 6/6/2013 4:13:37 AM | Location : United States

Related Discussions:- What is a semaphore, Assignment Help, Ask Question on What is a semaphore, Get Answer, Expert's Help, What is a semaphore Discussions

Write discussion on What is a semaphore
Your posts are moderated
Related Questions
explain in detail about ipc in linux

Q. Segmentation is alike to paging but uses variable-sized "pages". Describe two segment-replacement algorithms based on FIFO and LRU page replacement schemes. Remember that since

Note that the parameter for scanf doesn't need the address operators & because name is an address. However the variable name has no defined space. This can cause problems within C

diffenciet between least recently used and not recently used

The question of fairness, regarding page eviction, is a hard one. How do we decide what is fair? Many operating systems use global LRU, where pages from all processes are managed t

Grouping Threads That Execute Similar Functions   Thread Groups are generally used to group threads that execute similar functions of the application program. For instance, if

Many-to-Many Model The many-to-many model- many user-level threads to many kernel-level threads avoids several of the limitations of the one-to-one model, although extending mu

Explain the various file types A common technique for executing file types is to contain the type as part of the file name. The name is split into two parts - a name and an ext

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

Q. What are the major advantages of the microkernel approach to system design? Answer: Benefits usually include the following (a) Adding a new service doesn't require modify