<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --> <HTML> <HEAD> <TITLE>6.4.3 Semaphores</TITLE> <META NAME="description" CONTENT="6.4.3 Semaphores"> <META NAME="keywords" CONTENT="lpg"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <LINK REL=STYLESHEET HREF="lpg.css"> </HEAD> <BODY LANG="EN"> <A NAME="tex2html940" HREF="node47.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="/icons//next_motif.gif"></A> <A NAME="tex2html938" HREF="node21.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="/icons//up_motif.gif"></A> <A NAME="tex2html932" HREF="node45.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="/icons//previous_motif.gif"></A> <A NAME="tex2html942" HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="/icons//contents_motif.gif"></A> <BR> <B> Next:</B> <A NAME="tex2html941" HREF="node47.html">Basic Concepts</A> <B>Up:</B> <A NAME="tex2html939" HREF="node21.html">6.4 System V IPC</A> <B> Previous:</B> <A NAME="tex2html933" HREF="node45.html">The Source</A> <BR> <P> <H2><A NAME="SECTION00743000000000000000">6.4.3 Semaphores</A></H2> <P> <BR> <HR> <UL> <LI> <A NAME="tex2html943" HREF="node47.html#SECTION00743100000000000000">Basic Concepts</A> <LI> <A NAME="tex2html944" HREF="node48.html#SECTION00743200000000000000">Internal Data Structures</A> <UL> <LI> <A NAME="tex2html945" HREF="node49.html#SECTION00743210000000000000">Kernel <TT>semid_ds</TT> structure</A> <LI> <A NAME="tex2html946" HREF="node50.html#SECTION00743220000000000000">Kernel <TT>sem</TT> structure</A> </UL> <LI> <A NAME="tex2html947" HREF="node51.html#SECTION00743300000000000000">SYSTEM CALL: semget()</A> <LI> <A NAME="tex2html948" HREF="node52.html#SECTION00743400000000000000">SYSTEM CALL: semop()</A> <LI> <A NAME="tex2html949" HREF="node53.html#SECTION00743500000000000000">SYSTEM CALL: semctl()</A> <LI> <A NAME="tex2html950" HREF="node54.html#SECTION00743600000000000000">semtool: An interactive semaphore manipulator</A> <UL> <LI> <A NAME="tex2html951" HREF="node55.html#SECTION00743610000000000000">Background</A> <LI> <A NAME="tex2html952" HREF="node56.html#SECTION00743620000000000000">Command Line Syntax</A> <UL> <LI> <A NAME="tex2html953" HREF="node57.html#SECTION00743621000000000000">Creating a Semaphore Set</A> <LI> <A NAME="tex2html954" HREF="node58.html#SECTION00743622000000000000">Locking a Semaphore</A> <LI> <A NAME="tex2html955" HREF="node59.html#SECTION00743623000000000000">Unlocking a Semaphore</A> <LI> <A NAME="tex2html956" HREF="node60.html#SECTION00743624000000000000">Changing the Permissions (mode)</A> <LI> <A NAME="tex2html957" HREF="node61.html#SECTION00743625000000000000">Deleting a Semaphore Set</A> </UL> <LI> <A NAME="tex2html958" HREF="node62.html#SECTION00743630000000000000">Examples</A> <LI> <A NAME="tex2html959" HREF="node63.html#SECTION00743640000000000000">The Source</A> </UL> <LI> <A NAME="tex2html960" HREF="node64.html#SECTION00743700000000000000">semstat: A semtool companion program</A> </UL> <BR> <HR> <P><ADDRESS> <I>Converted on: <BR> Fri Mar 29 14:43:04 EST 1996</I> </ADDRESS> </BODY> </HTML>