TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Gerard Gerritsen
date: 1996-04-01 15:40:16
subject: Threads

Hello Peter!

Friday March 29 1996, Peter Fitzsimmons writes to Gerard Gerritsen:

 GG>> But how much difference will it make for a two threaded program ?

 PF> A lot.  DosEnterCritSec() _ALWAYS_ forces all other threads to stop.

But since there are only two threads that should not make any difference.

 PF> A semaphore will only cause another thread (or the thread asking for
 PF> the semaphore) to stop if and only if there has been a collision with
 PF> that semaphore.
 PF> Big difference.

I do not know for sure but I think using DosEnterCritSec takes less
overhead then using semaphores ?

==> Gerard/2   - member of team os/2 -  1000521{at}ibk.fnt.hvu.nl

--- Fmail/2 1.02 Registered
* Origin: Yet another forgotten area! (2:283/203.18)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 283/203 2 512 280/801 270/101 712/515 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™.