DOC PREVIEW
UMD CMSC 412 - Project 3 Roadmap

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Project 3 Roadmap Scheduling SemaphoresMultilevel Feedback Scheduling  struct Kernel_Thread in kthread.h  current queue: int currentReadyQueue  blocked state: bool blocked  there are 4 run queues now:  s_runQueue[MAX_QUEUE_LEVEL] in kthread.c  a thread is initially in s_runQueue[0]  except IDLE thread that enters at 3 when switching to MLF mode  check the scenarios  Find_Best() automatically pick the highest priority thread in a queue  Get_Next_Runnable() will call Find_Best() for each queue until it finds a ready processMultilevel Feedback Scheduling  end of quantum ?  if blocked promote  if has just run demote (check TODO in Timer_Interrupt_Handler() defined in timer.c)  make sure your Sys_SetSchedulingPolicy() works before stuff gets complicated  A thread becomes blocked in Wait().Semaphores  rough guideline  add two files sem.h/sem.c  create a semaphore structure  each has a thread queue, count, name, etc  P/V semantics  P decrease, block if needed  V increase, never blocks  section 7.4.2 in the textbook, pp 203Testing Your Code  workload.exe [rr/mys]  ping.exe & pong.exeGetTimeOfDay()  Sys_GetTimeOfDay - trivial  (return


View Full Document

UMD CMSC 412 - Project 3 Roadmap

Documents in this Course
Security

Security

65 pages

Deadlocks

Deadlocks

22 pages

Set 2

Set 2

70 pages

Project 2

Project 2

21 pages

Load more
Download Project 3 Roadmap
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Project 3 Roadmap and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Project 3 Roadmap 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?