Solved

Mutex

Posted on 1997-03-13
1
426 Views
Last Modified: 2013-12-16
What is a mutex.
0
Comment
Question by:craign
1 Comment
 
LVL 2

Accepted Solution

by:
pxh earned 100 total points
ID: 1811937
Hmm, there is MuTeX which is a package with musical symbols for TeX (i.e. MuTeX).

But you may also mean a "MUTual EXclusion lock".

     ... prevent multiple  threads
     from  simultaneously  executing  critical  sections  of code
     which access shared data (that is, mutexes are used to seri-
     alize  the  execution of threads).  All mutexes must be glo-
     bal.    A   successful   call   for   a   mutex   lock   via
     pthread_mutex_lock()  or  mutex_lock()  will  cause  another
     thread that is also trying to lock the same mutex  to  block
     until the owner thread unlocks it via pthread_mutex_unlock()
     or mutex_unlock().   Threads  within  the  same  process  or
     within other processes can share mutexes.


This is a copy/paste from a man page in Solaris 5.5. There is much more including example codes. If you can't access those docs let me now, I can email it to you.

Peter (pxh@mpe-garching.mpg.de)

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now