TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: EDDY THILLEMAN
from: MIKE RUSKAI
date: 1999-08-30 01:27:00
subject: Terminating threads clean

Some senseless babbling from Eddy Thilleman to Mike Ruskai
on 08-22-99  12:42 about Terminating threads clean...

 ET> Hi MIKE,

 ET> 20 Aug 99, MIKE RUSKAI of 1:3603/140 wrote to EDDY THILLEMAN:
 
 MR> Those are for making sure something is finished without being
 MR> interrupted by signals or exceptions.
 
 MR> The functions DosEnterCritSec() and DosExitCritSec() are
 MR> intended for making sure the current thread completes before
 MR> all others in the same process (by setting it at a higher
 MR> priority).

 ET> I thought that was by preventing being interrupted, not by setting it
 ET> at a higher priority?

No, it's actually by blocking the other threads.  I was confusing what was 
said in the reference.  What was actually said, aside from the fact that it 
causes other threads to block, was that the same effect could be achieved 
by giving the current thread a higher priority class (not just level, since 
that will vary when dynamic scheduling is enabled) than all others in the 
same process.

Mike Ruskai
thannymeister@yahoo.com


... Hey Billy, are you sure they wrote Windoze in Basic?

___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
2604/104
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)

SOURCE: echoes via The OS/2 BBS

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™.