TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: Thomas Seeling
date: 1996-11-12 13:15:52
subject: Mutex semaphores

Hallo, Phil!

*** Am 10. November 1996 um 13:42 schrieb Phil Crown an Thomas Seeling:

 TS>> void thread(...) {
 TS>> request();
 TS>> rc=function();
 TS>> release();
 TS>> }

 PC> But, by putting the request for the mux sem inside the called function,
 PC> I don't have to remember to request it (and fewer line of code to write)
 PC> from the calling function.

Agree.

btw: atomic means that there cannot be an interruption between the testing
and creating of a ressource, i.e. if after testing there _were_ something
like a task change, another thread could do the same operation of
testing/creating, and the first thread would fail with its assumption of
exclusive access.


Tschau...Thomas

--- E3-32/1.11-32/2.51+
* Origin: Die TeX-Box +49-6034-930021 V.34 -930022 ISDN 24h (2:244/1130.42)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 244/1130 24/999 888 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.