| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Killing blocked threads. |
Dear All. <-- Cute start of a letter, right?
I'm doing blocking I/O in one thread.
In another thread (after the program has run for a while) I determine that
I want to kill the first thread.
thread 1:
DosCreateNPipe( ..., NP_WAIT|NP_TYPE_BYTE|NP_READMODE_BYTE|..., ... );
DosConnectNPipe(...);
DosBeginThread( thread 2 );
DosRead(...); //this blocks until there's something to read
thread 2:
do something;
DosKill(thread 1); //while blocked in the DosRead operation)
do something;
What happens when the first thread is killed while in the DosRead function?
Is DosRead rewinded like in UNIX?
If so, where is this documented about OS/2?
And how about other system calls that are killed?
Best regards,
Ú þFidoNet: 2:235/360.35
Morten Broerup ÄÄ´ þInternet: mb{at}id.dtu.dk þWWW: http://www.id.dtu.dk/~mb/
Stud. Sc. Techn. À þABSOLUTE TECHNO BBS (+45 44 92 82 00): Sysop
--- GEcho 1.00
* Origin: Sysop of ABSOLUTE TECHNO BBS * Point at ScumSoft (2:235/360.35)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 713/888 800/1 7877/2809 @PATH: 235/360 236/9 235/50 240/5500 24/24 396/1 270/101 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™.