examples/s4u/actor-join/s4u-actor-join
examples/s4u/actor-kill/s4u-actor-kill
examples/s4u/actor-lifetime/s4u-actor-lifetime
-examples/s4u/actor-migration/s4u-actor-migration
+examples/s4u/actor-migrate/s4u-actor-migrate
examples/s4u/actor-suspend/s4u-actor-suspend
examples/s4u/actor-yield/s4u-actor-yield
examples/s4u/app-bittorrent/s4u-bittorrent
-foreach(example actor-create actor-join actor-migration actor-yield
+foreach(example actor-create actor-join actor-migrate actor-yield
exec-basic)
set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.tesh)
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/${example}.py)
p Testing the actor migration feature
-$ python3 ${bindir:=.}/actor-migration.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
+$ python3 ${bindir:=.}/actor-migrate.py ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
> [ 0.000000] (worker@Fafard) Let's move to Boivin to execute 1177.14 Mflops (5sec on Boivin and 5sec on Jacquelin)
> [ 5.000000] (monitor@Boivin) After 5 seconds, move the process to Jacquelin
> [ 10.000000] (worker@Jacquelin) I wake up on Jacquelin. Let's suspend a bit
# THIS IS ONLY FOR THE FILES. To add your test (tesh) as well, make sure you add
# the same at the bottom of the file as well.
foreach (example actor-create actor-daemon actor-join actor-kill
- actor-lifetime actor-migration actor-suspend actor-yield
+ actor-lifetime actor-migrate actor-suspend actor-yield
app-chainsend app-pingpong app-token-ring
async-ready async-wait async-waitany async-waitall async-waituntil
cloud-capping cloud-migration cloud-simple
${CMAKE_CURRENT_SOURCE_DIR}/README.rst PARENT_SCOPE)
foreach(example actor-create actor-daemon actor-join actor-kill
- actor-lifetime actor-migration actor-suspend actor-yield
+ actor-lifetime actor-migrate actor-suspend actor-yield
app-bittorrent app-chainsend app-masterworkers app-pingpong app-token-ring
async-ready async-wait async-waitall async-waitany async-waituntil
cloud-capping cloud-migration cloud-simple
- **Migrating Actors:**
Actors can move or be moved from a host to another very easily.
- |br| |cpp| `examples/s4u/actor-migration/s4u-actor-migration.cpp <https://framagit.org/simgrid/simgrid/tree/master/examples/s4u/actor-migration/s4u-actor-migration.cpp>`_
+ |br| |cpp| `examples/s4u/actor-migrate/s4u-actor-migrate.cpp <https://framagit.org/simgrid/simgrid/tree/master/examples/s4u/actor-migrate/s4u-actor-migrate.cpp>`_
:cpp:func:`simgrid::s4u::this_actor::migrate()` |cpp|
- |br| |py| `examples/python/actor-migration/actor-migration.py <https://framagit.org/simgrid/simgrid/tree/master/examples/python/actor-migration/actor-migration.py>`_
+ |br| |py| `examples/python/actor-migrate/actor-migrate.py <https://framagit.org/simgrid/simgrid/tree/master/examples/python/actor-migrate/actor-migrate.py>`_
:py:func:`simgrid.this_actor.migrate()` |py|
- **Waiting for the termination of an actor:** (joining on it)
|br| |cpp| `examples/s4u/actor-join/s4u-actor-join.cpp <https://framagit.org/simgrid/simgrid/tree/master/examples/s4u/actor-join/s4u-actor-join.cpp>`_
:cpp:func:`simgrid::s4u::Actor::join()` |cpp|
|br| |py| `examples/python/actor-join/actor-join.py <https://framagit.org/simgrid/simgrid/tree/master/examples/python/actor-join/actor-join.py>`_
- :cpp:func:`simgrid.Actor.join()` |py|
+ :py:func:`simgrid.Actor.join()` |py|
- **Yielding to other actors**.
The ```yield()``` function interrupts the execution of the current
p Testing the actor migration feature
-$ $SG_TEST_EXENV ${bindir:=.}/s4u-actor-migration ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
+$ $SG_TEST_EXENV ${bindir:=.}/s4u-actor-migrate ${platfdir}/small_platform.xml "--log=root.fmt:[%10.6r]%e(%P@%h)%e%m%n"
> [ 0.000000] (worker@Fafard) Let's move to Boivin to execute 1177.14 Mflops (5sec on Boivin and 5sec on Jacquelin)
> [ 5.000000] (monitor@Boivin) After 5 seconds, move the process to Jacquelin
> [ 10.000000] (worker@Jacquelin) I wake up on Jacquelin. Let's suspend a bit