TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Alan Clifford
date: 1996-03-24 15:42:34
subject: Threads

Hello Peter

Replying to a message of Peter Fitzsimmons to Alan Clifford:

 PF> The problem is that your threads to not call anything that
"blocks".
 PF> Whenever a thread calls something that blocks,  OS/2 looks for a
 PF> thread with a higher priority that is ready to run (perhaps because
 PF> its MAXWAIT period expired).  Eventually OS/2 will pre-empt the
 PF> thread,  but such occurances should be rare in a well written native
 PF> OS/2 program.

Thanks for the reply.  I seem to be getting an understanding of what's
going on.  I was surprised that OS/2 didn't pre-empt the thread.

With new stuff like this, I like to try things out a bit at a time before
attempting to use them for real.  I tried making the threads foreground
priority - this devastated the response of a text editor running at the
same time.

Alan

--- FleetStreet 1.14 NR
* Origin: Alan's Point on Donor/2 (alanc{at}donor2.demon.co.uk) (2:440/4.6)
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: 440/4 141/209 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™.