remzi-arpacidusseau / ostep-homework

2.11k stars 1k forks source link

example of chapter 9, page 2 pdf #12

Closed stardustman closed 4 years ago

stardustman commented 4 years ago

Hello, I read the chapter 9 cpu-sched-lottery page 2,

Here is an example output of a lottery scheduler’s winning tickets:
    63 85 70 39 76 17 29 41 36 39 10 99 68 83 63 62 43 0 49. 
    Here is the resulting schedule:
    A   A   A     A   A   A   A   A   A       A        A   A   A   A   A
      B         B                          B       B

I find the number of tickets is 19, not 20. the description below the example use the number of tickets is 20. which is "In our example above, B only get to run 4 our of 20 time slices(20%), instead of the desired 25% allocation." the example may miss a ticket for A.

remzi-arpacidusseau commented 4 years ago

thanks, fixed!

remzi-arpacidusseau commented 4 years ago

(p.s. this should be done on "ostep-typos" not "ostep-homework")