help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: question: DLD write and debug


From: Paul Kienzle
Subject: Re: question: DLD write and debug
Date: Tue, 20 Apr 2004 19:02:46 -0400


On Apr 20, 2004, at 4:42 AM, Eric Chassande-Mottin wrote:


Yes.  It makes it more difficult for functions to be reentrant,
and it will make multithreading even harder to do.

I ran into reentrancy problems today with fsolve, but I
don't see multithreading being an issue for the foreseeable
future.

hi Paul,

thanks for your answer.

I didn't know what 'reentrant' means. I went on wikipedia :

`` A computer program or routine is described as reentrant if it is
designed such that a single copy of the program's instructions in memory
can be shared by multiple users or separate processes.  The key to the
design of a reentrant program is to ensure that no portion of the program code is modified by the different users/processes, and that process-unique information (such as local variables) is kept in a separate area of memory
that is distinct for each user or process.''

since a DLD is accessed by only one Octave, why do you want it to be
reentrant?

fsolve cannot be called from within fsolve because "unique information
(such as local variables) [is not] kept in a separate area of memory that is distinct for each [call to fsolve]." That is, it uses static variables so it is
not reentrant.

Paul Kienzle
address@hidden



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]