| 
    CS318 - Pintos
    
   Pintos source browser for JHU CS318 course 
   | 
 
 
 
 
Go to the documentation of this file.
   48   msg (
"Low thread should have priority %d.  Actual priority: %d.",
 
   53   msg (
"Low thread should have priority %d.  Actual priority: %d.",
 
   58   msg (
"Medium thread should just have finished.");
 
   59   msg (
"Low thread should have priority %d.  Actual priority: %d.",
 
   71   msg (
"Medium thread should have priority %d.  Actual priority: %d.",
 
   73   msg (
"Medium thread got the lock.");
 
   81   msg (
"High thread should have just finished.");
 
   82   msg (
"Middle thread finished.");
 
   91   msg (
"High thread got the lock.");
 
   93   msg (
"High thread finished.");
 
  
void lock_release(struct lock *lock)
Releases LOCK, which must be owned by the current thread.
 
void lock_init(struct lock *lock)
Initializes LOCK.
 
void test_priority_donate_nest(void)
 
int thread_get_priority(void)
Returns the current thread's priority.
 
static thread_func high_thread_func
 
#define ASSERT(CONDITION)
This is outside the header guard so that debug.h may be included multiple times with different settin...
 
static thread_func medium_thread_func
 
Low-priority main thread L acquires lock A.
 
void msg(const char *format,...)
 
bool thread_mlfqs
If false (default), use round-robin scheduler.
 
tid_t thread_create(const char *name, int priority, thread_func *function, void *aux)
Creates a new kernel thread named NAME with the given initial PRIORITY, which executes FUNCTION passi...
 
void thread_func(void *aux)
 
void lock_acquire(struct lock *lock)
Acquires LOCK, sleeping until it becomes available if necessary.
 
void thread_yield(void)
Yields the CPU.
 
#define PRI_DEFAULT
Default priority.