Techcuriosity
Resources
Free Tutorials
 
 
 
Linux Tutorials
• About Linux
• Linux Vs Windows
• Linux File Permissions
• Linux Directory Structure
• Linux Basic Commands
• Advanced Permissions in Linux
• Linux Server Admin Commands
• Semaphores in Linux
 
Linux Commands Glossary
 
• Linux Commands Glossary - Index
• Linux Commands A
• Linux Commands B
• Linux Commands C
• Linux Commands D
• Linux Commands E
• Linux Commands F
• Linux Commands G
• Linux Commands H
• Linux Commands I
• Linux Commands J
• Linux Commands K
• Linux Commands L
• Linux Commands M
• Linux Commands N
• Linux Commands O
• Linux Commands P
• Linux Commands Q
• Linux Commands R
• Linux Commands S
• Linux Commands T
• Linux Commands U
• Linux Commands V
• Linux Commands W
• Linux Commands X
• Linux Commands Y
• Linux Commands Z
 
Linux Articles
• Difference between Hard Link and Soft Link in Linux
 
Other Tutorials
• Exim Tutorials
• FTP Tutorials
• MySQL Tutorials
• Linux Tutorials
• Shell Scripting Tutorials
• Web Hosting Tutorials
 
Web Designing Tutorials
 
• HTML Tutorials
• Perl Tutorials
• Web Templates Editing Tutorials
 
Bio Tutorials
• BioInformatics Tutorials
• Perl Scripts Library
 
Curiosity Topics
• Online Data Security
• VDS Technology
• How Website Works?
• About Hacking
 
 
Home   |   About us   |   Services   |   Forum   |   Articles   |   Tutorials   |   Contact us
 


Gateway to End all your Curiosities in Information Technology and Bio-Informatics!!.. FREE turorials for Linux, Web designing, Web template Editing, Operating systems, New technology, Bioinformatics, Bioinformatics perl scripts, Clinical research and much more curious topics you need to know.  
Your IP address is: 38.107.191.105


Allwebco Website Templates

Find more Info related to your curiosities @ our FORUM


What are Semaphores?

Semaphores are IPC mechanism which allow different processes to synchronize their access to certain resources.

 

Semaphores in Linux

Linux

The simplest kind of semaphores is called a binary semaphore and they have two states ( locked or unlocked ).
These act like traffic lights, which allows certain processes to exclusively access certain resources.

When a process wants exclusive access to a resource, example: shared memory, they attempt to lock the semaphore associated with that resource. If the semaphore they are attempting to lock is already locked, the caller is suspended, otherwise they are granted to lock.

When the process completes the task, it unlock the resource and any processes that have attempted to lock that semaphore in the meantime are woken up again to attempt the lock again. This way only one process can have access to the resource at once.

In addition, semaphores can also be used as a signaling mechanism.

<< Previous    |     Next >>
 
© TechCuriosity.com 2006 - 2007. All Rights Reserved.
Designed and Maintained by Telson Thomas
Techcuriosity
Website News
Sponsored Links
• Allwebco Website Templates
• Flash Templates
• Web Templates
• Flash Templates store
• Free website templates
• Free Flash Templates
• Web Hosting
• Dedicated Server
 
• Advertise Here
 
Help us in our Mission
 
Twitter 
Our Network Sites
• Web Hosting Solutions
• SEO and Link Directory
 
Free Tutorials
• HTML Tutorial
• PERL Tutorial
• Exim Commands
• MySQL Commands
• FTP Commands
• Shell Scripting Tutorial
 
Member Login
Username:

Password:

 
Search for Curiosity
 
 
 
Forum Curiosity Topics
• Forum Index
• Operating System's
• Web Hosting
• Programming
• Bioinformatics
• Biology & Bio-Technology
• Computer Security
• Hacking
• General Curiosity
• Jobs
 
Newsletter Signup
 
Subscribe
 
 
• Link Directory
• SiteMap