add vorgabe06
This commit is contained in:
26
c_os/user/CoopThreadDemo.cc
Executable file
26
c_os/user/CoopThreadDemo.cc
Executable file
@ -0,0 +1,26 @@
|
||||
/*****************************************************************************
|
||||
* *
|
||||
* C O O P E R A T I V E T H R E A D D E M O *
|
||||
* *
|
||||
*---------------------------------------------------------------------------*
|
||||
* Beschreibung: Beispiel für kooperative Threads. *
|
||||
* *
|
||||
* Autor: Michael Schoettner, HHU, 21.8.2016 *
|
||||
*****************************************************************************/
|
||||
|
||||
#include "kernel/Globals.h"
|
||||
#include "user/CoopThreadDemo.h"
|
||||
#include "user/LoopThread.h"
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
* Methode: CoopThreadDemo::run *
|
||||
*---------------------------------------------------------------------------*
|
||||
* Beschreibung: Der Anwendungsthread erzeugt drei Threads die Zaehler *
|
||||
* ausgeben und terminiert sich selbst. *
|
||||
*****************************************************************************/
|
||||
void CoopThreadDemo::run () {
|
||||
|
||||
/* Hier muss Code eingefuegt werden */
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user