mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
move the parent process to the end of the queue
=> child would be scheduled next => reduce the latency
This commit is contained in:
parent
8f82131f94
commit
0291e2999f
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue