add vorgabe06
This commit is contained in:
27
c_os/user/HelloWorldThread.cc
Executable file
27
c_os/user/HelloWorldThread.cc
Executable file
@ -0,0 +1,27 @@
|
||||
/*****************************************************************************
|
||||
* *
|
||||
* 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 "kernel/Globals.h"
|
||||
#include "user/HelloWorldThread.h"
|
||||
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Methode: HelloWorldThread::run *
|
||||
*---------------------------------------------------------------------------*
|
||||
* Beschreibung: Einstiegsfunktion in unseren Thread. *
|
||||
*****************************************************************************/
|
||||
void HelloWorldThread::run () {
|
||||
|
||||
kout << "Hallo Welt von einem Thread!" << endl;
|
||||
|
||||
// selbst terminieren
|
||||
scheduler.exit ();
|
||||
}
|
||||
Reference in New Issue
Block a user