+static int privileged(std::vector<std::string> /*args*/)
+{
+ /* This version of this_actor::execute() specifies that this execution
+ * gets a larger share of the resource.
+ *
+ * Since the priority is 2, it computes twice as fast as a regular one.
+ *
+ * So instead of a half/half sharing between the two executions,
+ * we get a 1/3 vs 2/3 sharing. */
+ simgrid::s4u::this_actor::execute(98095, 2);
+ XBT_INFO("Done.");
+
+ /* Note that the timings printed when executing this example are a bit misleading,
+ * because the uneven sharing only last until the privileged actor ends.
+ * After this point, the unprivileged one gets 100% of the CPU and finishes
+ * quite quickly. */
+ return 0;
+}
+