1
Fork 0
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:
Andreas Kling 2019-02-04 10:28:12 +01:00
parent 642e2447c9
commit c0cffe1134
8 changed files with 156 additions and 4 deletions

View file

@ -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();
};