TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Murray Lesser
from: David Noon
date: 1996-01-30 22:33:04
subject: Pl/i Multithreading

On Friday, 96/01/26, Murray Lesser wrote to David Noon about "Pl/i
Multithreading" as follows:

ML>     Big question:  What does DETACH do, if anything?  I find the manual
ML> very murky on this point.  A small exposition on the subject would
ML> be appreciated.

Hi Murray,

The DETACH statement cleans up the run-time resources owned by another
thread. However, it cannot do that if the thread is still a candidate
for dispatch. Therefore, you need to kill the thread (STOP THREAD
statement) or wait for it to complete (WAIT THREAD statement) before
you can use DETACH on it. Otherwise, you'd be taking the stack and much
else away from a thread that might be currently executing on another
CPU inside a SMP box. [E.g. a 10-way ES/9000 mainframe, if you've got
the millions to buy one.]

Remember, this language must not only be OS/2-safe, it must be
MVS-safe too.

Regards

Dave


 * KWQ/2 1.2i * User-friendly: (adj.) trivialized, slow, incapable, and boring.
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 50/99 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™.