1

implement + enable demos

This commit is contained in:
2022-07-04 21:24:35 +02:00
parent 7ab5fdb361
commit 1ae227ae33
7 changed files with 110 additions and 4 deletions

View File

@ -0,0 +1,17 @@
#include "user/PreemptiveLoopThread.h"
void PreemptiveLoopThread::run() {
/* Hier muss Code eingefuegt werden */
int cnt = 0;
while (true) {
// Basic synchronization by disabling PIT interrupts
cpu.disable_int();
kout.setpos(55, this->id);
kout << this->id << ": " << dec << cnt++ << endl;
cpu.enable_int();
}
}