X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..1d047f5a110cfd542b0aedeb72f680e03f8709cd:/examples/python/actor-suspend/actor-suspend.py diff --git a/examples/python/actor-suspend/actor-suspend.py b/examples/python/actor-suspend/actor-suspend.py index 95e055b5fe..2be5121327 100644 --- a/examples/python/actor-suspend/actor-suspend.py +++ b/examples/python/actor-suspend/actor-suspend.py @@ -1,4 +1,4 @@ -# Copyright (c) 2017-2020. The SimGrid Team. All rights reserved. +# Copyright (c) 2017-2021. The SimGrid Team. All rights reserved. # # This program is free software you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. @@ -8,7 +8,7 @@ import sys def lazy_guy(): - """The Lazy guy only wants to sleep, but can be awaken by the dream_master process""" + """The Lazy guy only wants to sleep, but can be awaken by the dream_master actor""" this_actor.info("Nobody's watching me ? Let's go to sleep.") this_actor.suspend() # - Start by suspending itself this_actor.info("Uuuh ? Did somebody call me ?") @@ -30,7 +30,7 @@ def lazy_guy(): def dream_master(): """The Dream master""" - this_actor.info("Let's create a lazy guy.") # Create a lazy_guy process + this_actor.info("Let's create a lazy guy.") # Create a lazy_guy actor lazy = Actor.create("Lazy", this_actor.get_host(), lazy_guy) this_actor.info("Let's wait a little bit...") this_actor.sleep_for(10) # Wait for 10 seconds