X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fthread.h;h=b45bdb8616f02b66c72a3c455215233de1b4f761;hb=db7d1db11685c1dc0d97c41049d26b876211551b;hp=fbef34b4673720b2f62bf3a80d1e08eadb441aa3;hpb=225e6b43b823eec0f3eef093f697c0b62538344f;p=pintos-anon diff --git a/src/threads/thread.h b/src/threads/thread.h index fbef34b..b45bdb8 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -101,6 +101,13 @@ struct thread unsigned magic; /* Detects stack overflow. */ }; +/* If false (default), use round-robin scheduler. + If true, use multi-level feedback queue scheduler. + Controlled by kernel command-line options "-o mlfqs". + Note that the command line is not parsed until well after + thread_init() is called. */ +extern bool thread_mlfqs; + void thread_init (void); void thread_start (void);