1

add vorgabe06

This commit is contained in:
2022-06-02 13:01:43 +02:00
parent 7b7b375c8c
commit 32b1f2391f
15 changed files with 525 additions and 0 deletions

27
c_os/user/HelloWorldThread.cc Executable file
View 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 ();
}