1 // Demonstrate lack of fairness in IPC.
2 // Start three instances of this program as envs 1, 2, and 3.
3 // (user/idle is env 0).
8 umain(int argc
, char **argv
)
14 if (thisenv
== &envs
[1]) {
17 cprintf("%x recv from %x\n", id
, who
);
20 cprintf("%x loop sending to %x\n", id
, envs
[1].env_id
);
22 ipc_send(envs
[1].env_id
, 0, 0, 0);