add kill + example code

scheduler.kill seems like its not implemented comletly or doest work as
expected.
This commit is contained in:
2025-12-03 07:07:34 +01:00
parent 9d1abb21f1
commit a50503e8c9
5 changed files with 34 additions and 53 deletions

View File

@@ -1,20 +1,7 @@
// vim: set noet ts=4 sw=4:
#include "appl.h"
#include "../../syscall/stub.h"
#include "../../arch/core.h"
#include "../../arch/system.h"
#include "../../debug/output.h"
#include "../../device/textstream.h"
#include "../../interrupt/guard.h"
#include "../../sync/semaphore.h"
#include "../../thread/scheduler.h"
extern Semaphore koutsem;
extern TextStream kout;
extern Application apps[];
void Application::action() { // NOLINT
// Thread 1 may be an auxiliary thread