🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2129

How do you kill threads and abort I/O?

#2129
From: Bob Riedel
Date: Fri, 16 Oct 1992 21:56
14 lines
1204 bytes
How do you kill a thread from the parent thread in OS/2 1.3 and is there any
way to abort pending I/O?

We are working on an multi-threaded application and there appears to be no
support within the OS/2 system to kill off a child thread from another thread.
It looks to me like the only way to do it is to set a semaphore or a flag
somewhere and then wait for the thread to commit suicide, and provide some
sort of synchronization mechanism within the code so the killing process will
know when the dying thread has responded. But what a pain. Also, is there
any way to detect when a thread has exited on its own?

Also, is there a way to abort pending I/O? DOS_READ() appears to want to
complete according to its own timetable, but what do you do if you want to stop
a pending I/O request NOW!!!
Technical Details
Message-ID: <1992Oct16.145657.1012@beckman.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!sdd.hp.com!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!beckman.com!rariedel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!cass.ma02.bull.com!think.com!sdd.hp.com!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!news.service.uci.edu!beckman.com!rariedel
From: rariedel@beckman.com (Bob Riedel)
Newsgroups: comp.os.os2.programmer
Subject: How do you kill threads and abort I/O?
Message-ID: <1992Oct16.145657.1012@beckman.com>
Date: 16 Oct 92 21:56:56 GMT
Organization: BECKMAN
Lines: 14