TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Ken Kavanagh
from: Ken Kavanagh
date: 1994-11-15 10:53:40
subject: semaphores (version 0.2)

On Monday November 14 1994, Ken Kavanagh writes to All:

Hello Ken!

 KK> I think i need some clairification on semaphores after having read many a
 KK> book/manual on them all day.  when a thread creates a semaphore, do other
 KK> threads in that same program do a dosOpeneventSem? or do I pass the opened
 KK> sem handle around for everyone to use?

to answer myself, I have learned from someone on internet relay chat, all
threads within a process must either be passed the handle to a semaphore,
or have the handle global.  DosOpenEventSem is only used in other
processes.  Now I can get into the meat and potatoes of the program!

Cheers, Ken


--- GoldED/2 2.42.G0614

* Origin: Sound Stage BBS - Live Via Satellite - (604)944-6476 (1:153/7070)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 153/7070 3615/50 229/2 12/2442 711/409 54/54 711/808 809 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™.