Re: termination question
Ritu Sabharwal <[email protected]> Wed, 22 Nov 2006 17:13:28 +0530
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Organization | HP |
| Message-ID | <[email protected]> |
Hello Andreas,
Yes, but putting an explicit lock in sfTerminate method of component A
till the event task finishes, SF can wait for the termination of A.
Thanks & Regards,
Ritu.
Andreas Unterkircher wrote:
> Hi Ritu,
> termination means calling the sfTerminate method, I think. So if A has
> some lock variable that would cause sfTerminate to just wait until the
> task caused by the event is finished, this would cause SF to "wait"
> with termination of A ?
>
> Best regards,
> Andreas
>
> Ritu Sabharwal wrote:
>
>> Hi Andreas,
>>
>> In case of Compound, if any child terminates it notifies the parent
>> which in turn terminates all other children and then itself. So in
>> your case, SF will not wait for A to finish its task, it will
>> terminate it immediately as soon as B terminates.
>>
>> Thanks & Regards,
>> Ritu.
>>
>> Andreas Unterkircher wrote:
>>
>>> Hello,
>>>
>>> I have a question concerning termination. Suppose I have a compound
>>> containing 2 components:
>>>
>>> Compound {
>>> A;
>>> B; }
>>>
>>> A extends EventCompoundImpl. B terminates and in its sfTerminate
>>> method it sends an event to A which causes A to do some task that
>>> take some time. If B terminates, what happens to A ? Would SF wait
>>> until A finishes the task triggered by B's message ? Or would it
>>> just terminate A ?
>>>
>>> Thanks,
>>> Andreas
>>>
>>> -------------------------------------------------------------------------
>>>
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>
>>> _______________________________________________
>>> Smartfrog-support mailing list
>>> Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>> https://lists.sourceforge.net/lists/listinfo/smartfrog-support
>>>
>>>
>>
>>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV