1

update demos for nice_kill

This commit is contained in:
2022-07-22 21:39:22 +02:00
parent 4e584546a0
commit adeaaa6edd
16 changed files with 40 additions and 56 deletions

View File

@ -3,7 +3,7 @@
void PreemptiveLoopThread::run() {
int cnt = 0;
while (true) {
while (running) {
// Basic synchronization by semaphore
kout.lock();
@ -13,6 +13,8 @@ void PreemptiveLoopThread::run() {
kout.unlock();
}
scheduler.exit();
}
void PreemptiveThreadDemo::run() {