diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-11-19 02:46:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-11-19 02:48:17 +0100 |
commit | 23588c267fa08b5d27793e62bb72214164107e97 (patch) | |
tree | 800ffb8d3fd0faa7d6f43f3cadb58ce3f00eb149 /COPYING3 | |
parent | 24c0a02a18d35dbd4f7715018bfffb11241bce7b (diff) | |
download | gnumach-23588c267fa08b5d27793e62bb72214164107e97.tar.gz gnumach-23588c267fa08b5d27793e62bb72214164107e97.tar.bz2 gnumach-23588c267fa08b5d27793e62bb72214164107e97.zip |
Fix interactivity of inactive threads
A new thread will mosty probably start working, assume it will take
its share of CPU, to avoid having to find it out slowly. Decaying will
however fix that quickly if it actually does not work.
This fixes stalling issues when a program keeps creating threads.
* kern/thread.c (thread_create): Set new_thread's cpu_usage and
sched_usage to a fair share of the current load.
Diffstat (limited to 'COPYING3')
0 files changed, 0 insertions, 0 deletions