1

update preemption demo to variable thread num

This commit is contained in:
2022-07-16 00:58:59 +02:00
parent 24cf319b86
commit d1d3714b63
2 changed files with 18 additions and 13 deletions

View File

@ -24,8 +24,10 @@ class PreemptiveThreadDemo : public Thread {
private:
PreemptiveThreadDemo(const PreemptiveThreadDemo& copy) = delete; // Verhindere Kopieren
unsigned int number_of_threads;
public:
PreemptiveThreadDemo() {
PreemptiveThreadDemo(unsigned int n) : number_of_threads(n) {
kout << "Initialized PreemptiveThreadDemo" << endl;
}