Menu

#1 Kill feature

Next_Release
closed
nobody
Language (1)
5
2015-03-06
2010-01-15
Anonymous
No

Can you add a kill primitive that kills all the sessions and closes the program.
I think that the exit primitive does not suffice since when I use the exit primitive it waits for the end of the active sessions.

Discussion

  • Fabrizio Montesi

    Adding a forceful service termination may indeed be useful.
    The only doubt I have is if it should go in as an operation of the Runtime standard service or as a language primitive; probably the first. Something like kill@Runtime or die@Runtime.

     
  • guidiclaudio

    guidiclaudio - 2010-01-15

    I am not so sure that a kill primitive for aborting an entire service could be safe. I cannot manage a correct ending of the current sessions. It is probably safe to introduce a specific fault (raised when an exit primtive is executed in a session) whose handler could be installed into the main scope in order to allow the programmer for introducing some safe termination activities.

    Furthermore, I suggest to introduce a primitive for exiting from a single session without affecting the other ones.

     
  • Nobody/Anonymous

    I like the idea of making other sessions handling a fault. How could we implement that semantically? Something along the line of "the next instruction executed by every session will throw a fault" ?

    Forcefully terminating the current session without affecting the other ones can already be done by throwing a fault. This, however, cannot interrupt pending Solicit-Response calls (which will wait for the response nevertheless, iirc Jacopo, the original requester, raised this as a problem) which, by the way, could be a sane behaviour considering that even if you are forcefully exiting you probably want your parallel activities in the same session to execute their termination handlers.

    If we go this way we have to decide a name for this fault. Exit? ExitFault? Mmh.. :-)

     
  • Fabrizio Montesi

    Last comment was mine, I forgot to login. I'm putting the feature tracker on compulsory login.

     
  • Matthias Dieter Wallnöfer

    Also this seems pretty old to me...maybe we should close?

     
  • Matthias Dieter Wallnöfer

    • status: open --> closed
    • Group: --> Next_Release
     
  • Fabrizio Montesi

    This has been fixed by introducing the halt@Runtime operation in runtime.iol.

     

Log in to post a comment.