+ The following file is used in both C++ and Python.
+
+Reacting to actors' end
+^^^^^^^^^^^^^^^^^^^^^^^
+
+You can attach callbacks to the end of actors. There are several ways of doing so, depending on whether you want to
+attach your callback to a given actor and on how you define the end of a
+given actor. User code probably wants to react to the termination of an actor
+while some plugins want to react to the destruction (memory collection) of
+actors.
+
+.. tabs::
+
+ .. example-tab:: examples/cpp/actor-exiting/s4u-actor-exiting.cpp
+
+ This example shows how to attach a callback to:
+
+ - the end of a specific actor: :cpp:func:`simgrid::s4u::Actor::on_exit()`
+ - the end of any actor: :cpp:func:`simgrid::s4u::Actor::on_termination_cb`
+ - the destruction of any actor: :cpp:func:`simgrid::s4u::Actor::on_destruction_cb`
+
+ .. example-tab:: examples/c/actor-exiting/actor-exiting.c
+
+ This example shows how to attach a callback to the end of a specific actor with
+ :cpp:func:`sg_actor_on_exit()`.
+
+Killing actors
+^^^^^^^^^^^^^^
+
+Actors can forcefully stop other actors.
+
+.. tabs::
+
+ .. example-tab:: examples/cpp/actor-kill/s4u-actor-kill.cpp
+
+ See also :cpp:func:`void simgrid::s4u::Actor::kill(void)`, :cpp:func:`void simgrid::s4u::Actor::kill_all()`,
+ :cpp:func:`simgrid::s4u::this_actor::exit`, :cpp:func:`simgrid::s4u::Actor::on_exit`.
+
+ .. example-tab:: examples/python/actor-kill/actor-kill.py
+
+ See also :py:func:`simgrid.Actor.kill()`, :py:func:`simgrid.Actor.kill_all()`, :py:func:`simgrid.this_actor.exit()`,
+ :py:func:`simgrid.this_actor.on_exit`.
+
+ .. example-tab:: examples/c/actor-kill/actor-kill.c
+
+ See also :cpp:func:`sg_actor_kill`, :cpp:func:`sg_actor_kill_all`, :cpp:func:`sg_actor_exit`, :cpp:func:`sg_actor_on_exit`.
+
+Actors' life cycle from XML_reference
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+You can specify a start time and a kill time in the deployment file.
+
+.. tabs::
+
+ .. example-tab:: examples/cpp/actor-lifetime/s4u-actor-lifetime.cpp
+
+ This file is not really interesting: the important matter is in the XML file.
+
+ .. example-tab:: examples/cpp/actor-lifetime/s4u-actor-lifetime_d.xml
+
+ This demonstrates the ``start_time`` and ``kill_time`` attribute of the :ref:`pf_tag_actor` tag.
+
+ .. example-tab:: examples/python/actor-lifetime/actor-lifetime.py
+
+ This file is not really interesting: the important matter is in the XML file.
+
+ .. example-tab:: examples/c/actor-lifetime/actor-lifetime.c
+
+ This file is not really interesting: the important matter is in the XML file.
+
+Daemon actors
+^^^^^^^^^^^^^
+
+Some actors may be intended to simulate daemons that run in the background.
+This example shows how to transform a regular
+actor into a daemon that will be automatically killed once the simulation is over.
+
+.. tabs::
+
+ .. example-tab:: examples/cpp/actor-daemon/s4u-actor-daemon.cpp