mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
Add a /bin/top program for process table monitoring.
It automagically computes %CPU usage based on the number of times a process has been scheduled between samples. The colonel task is used as idle timer. This is pretty cool. :^)
This commit is contained in:
parent
642e2447c9
commit
c0cffe1134
8 changed files with 156 additions and 4 deletions
|
@ -18,6 +18,7 @@ public:
|
|||
static bool yield();
|
||||
static bool context_switch(Process&);
|
||||
static void prepare_to_modify_tss(Process&);
|
||||
static Process* colonel();
|
||||
private:
|
||||
static void prepare_for_iret_to_new_process();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue