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)
|