X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fthreads.tmpl;h=6afb34f4e51ca0c6f3def2d90a4def683d1ed17d;hb=ad463f508ae96156401eaadf92e5801ba393e63d;hp=367baf42f1452633457932b7eb09063a2d0607ff;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/doc/threads.tmpl b/doc/threads.tmpl index 367baf4..6afb34f 100644 --- a/doc/threads.tmpl +++ b/doc/threads.tmpl @@ -32,7 +32,7 @@ FirstName LastName ---- ALGORITHMS ---- ->> Briefly describe what happens in a call to thread_sleep(), including +>> Briefly describe what happens in a call to timer_sleep(), including >> the effects of the timer interrupt handler. >> What steps are taken to minimize the amount of time spent in the timer @@ -41,10 +41,10 @@ FirstName LastName ---- SYNCHRONIZATION ---- >> How are race conditions avoided when multiple threads call ->> thread_sleep() simultaneously? +>> timer_sleep() simultaneously? >> How are race conditions avoided when a timer interrupt occurs during a ->> call to thread_sleep()? +>> call to timer_sleep()? ---- RATIONALE ---- @@ -61,7 +61,7 @@ FirstName LastName >> Identify the purpose of each in 25 words or less. >> Explain the data structure used to track priority donation. Use ASCII ->> art to diagram a nested donation. +>> art to diagram a nested donation. (Alternately, submit a .png file.) ---- ALGORITHMS ---- @@ -118,12 +118,15 @@ ticks A B C A B C to run >> table uncertain? If so, what rule did you use to resolve them? Does >> this match the behavior of your scheduler? +>> How is the way you divided the cost of scheduling between code +>> inside and outside interrupt context likely to affect performance? + ---- RATIONALE ---- ->> Critique your design, pointing out advantages and disadvantages in ->> your design choices. If you were to have extra time to work on this ->> part of the project, how might you choose to refine or improve your ->> design? +>> Briefly critique your design, pointing out advantages and +>> disadvantages in your design choices. If you were to have extra +>> time to work on this part of the project, how might you choose to +>> refine or improve your design? >> The assignment explains arithmetic for fixed-point math in detail, but >> it leaves it open to you to implement it. Why did you decide to