[kepler-users] Problem with PN director
Edward A. Lee
eal at eecs.berkeley.edu
Tue Jun 21 08:46:38 PDT 2011
PN wraps every actor in an infinite loop that executes in it's own thread. I think what is happening is that the director is detecting that no tokens are available and is killing blocked threads to stop the execution. This would be normal, I think. How else would you stop a blocked thread? The odd thing is that this exception should be caught and not reported.
Edward
------------
Edward A Lee
Professor
UC Berkeley
On Jun 21, 2011, at 8:05 AM, Vincenzo Forchi <vforchi at eso.org> wrote:
> Hi Edward,
>
> On 21/06/2011 16:53, Edward A. Lee wrote:
>> Something's fishy here.
>> Such a model should work fine in PN.
>> Note that hasToken() _alaways_ returns true in PN.
> That's good to know, I completely missed that
>> The get() method blocks when there is no input.
> Apparently in this case it doesn't, but why is the fire even triggered in the first place?
>
>> Looks like something is terminating the threads
>> using a TerminateProcessException. How is your model
>> supposed to be stopped?
> When all the tokens have been consumed, which works for most of my actors with the PN and for all of them with the DDF.
>
> Cheers,
> Vincenzo
>
> --
> Vincenzo Forchi European Southern Observatory
> Karl-Schwarzschild-Strasse 2, D-85748 Garching bei Muenchen, Germany.
> Email: vforchi at eso.org Tel: +49 89 32006136 Fax: +49 89 3202362
More information about the Kepler-users
mailing list