How to use the simgrid.Actor.kill_all function in simgrid

To help you get started, we’ve selected a few simgrid examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github simgrid / simgrid / examples / python / actor-kill / View on Github external

    # that's a no-op, there is no zombies in SimGrid"Kill victim B, even if it's already dead")

    this_actor.sleep_for(1)"Start a new actor, and kill it right away")
    victim_c = Actor.create("victim C", Host.by_name("Jupiter"), victim_a_fun)

    this_actor.sleep_for(1)"Killing everybody but myself")
    Actor.kill_all()"OK, goodbye now. I commit a suicide.")
        "This line never gets displayed: I'm already dead since the previous line.")