1

implement loop demo

This commit is contained in:
churl
2022-06-15 21:31:29 +02:00
parent a3aa13d946
commit 1a5c701546
4 changed files with 49 additions and 23 deletions

View File

@ -9,14 +9,19 @@
#include "user/LoopThread.h"
#include "kernel/Globals.h"
/*****************************************************************************
* Methode: LoopThread::run *
*---------------------------------------------------------------------------*
* Beschreibung: Code des Threads. *
*****************************************************************************/
void LoopThread::run () {
/* Hier muss Code eingefuegt werden */
void LoopThread::run() {
/* Hier muss Code eingefuegt werden */
int cnt = 0;
while (true) {
kout.setpos(55, this->id);
kout << this->id << ": " << dec << cnt++ << endl;
scheduler.yield();
}
}