TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Rob Landley
date: 1995-03-19 18:52:38
subject: DosKillThread useable?

> A thread should be asked to die,  and it should kill itself.

I'm fairly new at OS/2 programming (I.E. I've gotten GCC to work, but make
files elude me and always say something like "request to compile
header files ignored" and then dies on the linker phase.)

The only example of doskillthread I've seen is a multi-threaded com app
that uses a blocking read from the com port to put bytes into a buffer the
user can manipulate.  The only way to get it to go away when you exit is
doskillthread. What would you suggest?

>     DosSuspendThread()

Never used this one.  I take it you should ask a thread to suspend itself?

>     DosEnterCritSec()   (There used to be a performance trick (over a

I understand why that's bad.  SMP will probably be the desktop standard in
about three years.  (My estimate, anyway.  When the pentium starts to die,
it or the clone makers will fight off the 686 with multi-cpu motherboards,
and they'll get really cheap.)

Rob
 
--- Xblat
* Origin: The Conversation Pit, Marlton NJ 609-985-7553 OS/2 V34 (1:266/30)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 266/30 40 100 505 3615/50 396/1 270/101 105/103 42 712/515 711/808 809
@PATH: 711/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™.