From 0291e2999fbcdf2b88481acf37504ec8e7738dae Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Mon, 22 Aug 2016 09:01:59 +0200 Subject: [PATCH] move the parent process to the end of the queue => child would be scheduled next => reduce the latency --- hermit/tools/proxy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hermit/tools/proxy.c b/hermit/tools/proxy.c index 1935a4a3d..d7d5789cb 100644 --- a/hermit/tools/proxy.c +++ b/hermit/tools/proxy.c @@ -187,6 +187,10 @@ static int init_qemu(char *path) exit(1); } + // move the parent process to the end of the queue + // => child would be scheduled next + sched_yield(); + return 0; }