IEEE Std 1003.1c-1995 Interpretation #38


Copyright © 1997 IEEE. All rights reserved.



Interpretation Number: 38
Topic: mutex
Relevant Clauses: 2.2.2.68

Interpretation Request:
-----------------------       
Why does a mutex only allow multiple threads to serialize their access to
"shared data"? A mutex may be used to provide mutual exclusion among threads
trying to access any sort of shared resource. For example, several threads
may occasionally need to utilize a single hardware co-processor, and may
serialize access to that resource with a mutex even though it isn't "shared
data".

Suggested Correction:
Change the phrase "shared data" to "shared resources".

Interpretation response for IEEE Std 1003.1c-1995:
--------------------------------------------------
The part of the definition cited is informative in scope and does not
require any restrictions on conforming applications.  The proposed
change may add some additional clarity and will be referred to the
sponsor for consideration.


Rationale:
-------------
The wording of the particular sentence is neither binding upon the
application, nor is it constrained by the interface, and it is not
testable by a conformance test.  Changing 'data' to 'resources' may help
someone inexperienced in this area but does not seem to make a
significant improvement in the standard.



Back to IEEE Standards Interpretations for IEEE Std 1003.1c-1995


© Copyright IEEE-SA
Contact IEEE-SA
For questions or comments, please contact the IEEE-SA Webmaster.