1

reduce insane output + introduce block queue

This commit is contained in:
2022-07-17 01:14:32 +02:00
parent b1e3129de8
commit 566c11eab1
2 changed files with 72 additions and 15 deletions

View File

@ -40,6 +40,7 @@ private:
// NOTE: Using this instead of the Queue is a side effect, I added the ArrayList for different reasons
// but my Queue was shit so I replaced it (and didn't fix the Queue)
ArrayList<Thread*> ready_queue;
ArrayList<Thread*> block_queue;
public:
Scheduler() : has_idle_thread(false), log("SCHED") {}
@ -63,6 +64,7 @@ public:
// Thread mit 'Gewalt' terminieren
void kill(Thread* that);
void kill(unsigned int id);
// CPU freiwillig abgeben und Auswahl des naechsten Threads
void yield();