TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Peter Knapper
from: David Noon
date: 1999-09-27 18:42:01
subject: Concurrent sessions fail

In a message dated 09-25-99, Peter Knapper said to All about "Concurrent
sessions fail."

Hi Peter,

[snip]
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.

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

My best suggestion is to remove the code in question from the worker
routines and ensure that all the libraries required have been registered
before the overall processing starts. One way would be to do all the prep
work in REXX too, and include in this the registration of the external
libraries. This would allow the ftp processes to operate in parallel as you
intend without having to compete for update access to the REXX external
function table.

Regards

Dave

___
 * MR/2 2.25 #353 * A chrysanthemum by any other name would be easier to
spell.

--- Maximus/2 3.01
267/200
45
* Origin: Air Applewood, OS/2 Gateway to Essex 44-1279-792300 (2:257/609)

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