| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Termination queue(s) |
-=> Quoting Peter Fitzsimmons to Phil Crown <=-
PC> My app starts up to 3 other apps using DosStartSession().
PC> Should I use a different termination queue for each or one queue
PC> for all spawned apps?
PC> I guess if I used only one queue, then I'd need a thread dedicated to
PC> reading the queue.
PF> I've never done it, but I think you only need one queue.
PF> Actually, I'm 99% sure -- I have an app that only starts one program
PF> directly, but the many children that that program starts all end up
PF> sending start/end messages to my term queue. My program is a
PF> debuggger;I don't think normal apps get a "start message" on their
PF> termination queue.
PF> You only need a separate thread if your app has to go on and do other
PF> stuff (which is probable).
This seems to be the case. I had been doing this for each process;
1. start a thread
2. create a queue
3. run the program
4. wait for the termcode in the queue
The problem is that the second thread/process that is started receives
the first process's termination code in its queue, so the first thread
never knows the process it started has ended.
PF> For what's it worth, here's my code:
Thanks for the code.
Phil Crown
pcrown{at}airmail.net
http://web2.airmail.net/pcrown/
--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 124/1208 1 396/1 270/101 712/515 711/808 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™.