On Mon, 23 Oct 2006 10:34:46 +0200 Bernd Oppolzer <[EMAIL PROTECTED]>
wrote:

:>The RENT attribute is not ignored for unauthorized programs. The program is 
:>still treated as reentrant (no new LOAD; no wait for completion of other 
:>processes), only the write protection is not set. 

:>Now consider the following: 

:>We have modules that try to improve performance by doing complex computations 
:>only once. 

:>The modules are RENT, because they are used in a dialog environment. 

:>This is usually implemented by having a static pointer which is initialized 
:>with zero. The first time the module is called the static pointer is 
:>inspected. If still zero, the computation has to be done and in the end 
:>the static pointer is changed to the location of the result (usually a table 
:>of results, depending on the various inputs). 

:>We call this a "Gedaechtnis" (german for memory). 

:>The worst thing that could happen if the module is called in parallel is
:>that the computation is done multiple times. If the module has completed the 
:>computation, it checks again the pointer, and if now not zero, it throws away 
:>its results, because another process has already completed the computation. 

:>For a logic of this kind, I need RENT programs which can be changed. 

Or you can use name/token to anchor the result area.

--
Binyamin Dissen <[EMAIL PROTECTED]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to