1
Files
lecture-operating-system-de…/c_os/user/HelloWorldThread.cc
2022-06-27 22:50:11 +02:00

26 lines
1.3 KiB
C++

/*****************************************************************************
* *
* H E L L O W O R L D T H R E A D *
* *
*---------------------------------------------------------------------------*
* Beschreibung: Ein einfacher Thread. *
* *
* Autor: Michael Schoettner, HHU, 21.8.2016 *
*****************************************************************************/
#include "user/HelloWorldThread.h"
#include "kernel/Globals.h"
/*****************************************************************************
* Methode: HelloWorldThread::run *
*---------------------------------------------------------------------------*
* Beschreibung: Einstiegsfunktion in unseren Thread. *
*****************************************************************************/
void HelloWorldThread::run() {
kout << "Hallo Welt von einem Thread!" << endl;
// selbst terminieren
scheduler.exit();
}