scheduler + 2 instances of application

This commit is contained in:
Eggert Jung
2025-06-23 20:21:19 +02:00
parent da34f7cada
commit e6d6e7521c
7 changed files with 28 additions and 15 deletions

View File

@@ -12,6 +12,7 @@
#include "../../thread/scheduler.h"
extern Scheduler sch;
static uint8_t appl_cnt = 0;
char text[] = "Ich mag\n\
Saftige Pflaumen voller Aroma\n\
@@ -40,13 +41,13 @@ void activeWaitDelay(uint64_t cycles) {
void Application::action() { // NOLINT
uint16_t cnt = 0;
uint8_t row = appl_cnt++;
while (1) {
//koutlock.lock();
{
Guarded g = Guard::enter();
//g.vault();
g.vault().kout.setPos((unsigned)0,(unsigned)Core::getID()*2+1);
g.vault().kout.setPos((unsigned)10*row,(unsigned)Core::getID()*2+1);
g.vault().kout << cnt++ << flush;
//g.vault().kout << endl << flush;