TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: David Noon
from: Peter Knapper
date: 1999-09-29 21:09:07
subject: Concurrent sessions fail

Hi David,

PK>If I modify PRIMARY.CMD and insert a utility BETWEEN the 2 
PK>Start commands that invokes a 2 second "SLEEP", then 
PK>everything appears to start up fine.

 DN> The most likely cause of contention in your code with be the RxFuncAdd()
 DN> calls and the subsequent library registrations. These all require a mutex
 DN> that serializes the shared memory area for the REXX external functions
 DN> table. I suspect something in the REXX run-time just 
 DN> shuts down the process if acquiring the mutex fails.

Thanks for confirming my thoughts on this one........;-)

I call RxFuncAdd for all the libraries I normally use from Startup.Cmd and
dont release them, so the startup code is normally never needed, its just a
"safety net". I have always hard coded the loads using the basis that the load 
attempts to detect them and does not actually load them if already loaded,
however I notice that some people use RxFuncQuery to test for them, and load
only if needed. However your reply suggests that there may actually be an
issue with doing things this way after all... 

Thanks..........pk.


--- Maximus/2 3.01
30
* Origin: Another Good Point About OS/2 (3:772/1.10)

SOURCE: echoes via The OS/2 BBS

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™.