Multi-Threading in NetRexx

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Multi-Threading in NetRexx

Bruce Weise

Does NetRexx support Multi-Threading?  More specifically, does it support
syncronization between thread (i.e. wait(), notify(), notifyAll()).
synchronized does not appear to be a valid keyword.  Does anyone have an
example of threads using wait() and notify() in NetRexx?

Thanks.
B.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Multi-Threading in NetRexx

Massimiliano Marsiglietti
Ciao Bruce,

you wrote:

> Does NetRexx support Multi-Threading?  More specifically, does it
support
> syncronization between thread (i.e. wait(), notify(), notifyAll()).
> synchronized does not appear to be a valid keyword.  Does anyone have an
> example of threads using wait() and notify() in NetRexx?

Bruce, NetRexx uses the very same Java APIs for threads (that you
seem to know already, therefore I won't go into detail here) -- it only
changes the keyword that indicates synchronization: NetRexx wants
"protect".

"protect" can be applied to methods, do, loop and select construct.
[See the docs for more details]

Max

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Multi-Threading in NetRexx

Mike Cowlishaw-2
In reply to this post by Bruce Weise
> Does NetRexx support Multi-Threading?  More specifically, does it support
> syncronization between thread (i.e. wait(), notify(), notifyAll()).
> synchronized does not appear to be a valid keyword.  Does anyone have an
> example of threads using wait() and notify() in NetRexx?

Yes, all those work exactly as in Java.  The keyword in NetRexx is
'protect'.  (I changed it from 'synchronized' after observing that in
Java it is very hard to type correctly -- as nicely demonstrated by
your note :-).

Mike Cowlishaw
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>

Reply | Threaded
Open this post in threaded view
|

Re: Multi-Threading in NetRexx

dIon Gillard/Multitask Consulting/AU
In reply to this post by Bruce Weise
On Wed, 5 Aug 1998 16:41:46 -0500, Bruce Weise wrote:

|  
|   Does NetRexx support Multi-Threading?  More specifically, does it support
|   syncronization between thread (i.e. wait(), notify(), notifyAll()).
|   synchronized does not appear to be a valid keyword.  Does anyone have an
|   example of threads using wait() and notify() in NetRexx?
Yes....replace synchronized with protect.

dIon Gillard, Sun Certified Java 1.1 Programmer
Work: http://www.multitask.com.au/ | NetRexx: http://www.multitask.com.au/netrexx/
VisualNetRexx: http://www.trongus.com/VisualNetRexx/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>