ferrous26 / cs452-flaming-meme

CS452 Real Time Programming
MIT License
2 stars 1 forks source link

Set priorities #83

Closed ferrous26 closed 10 years ago

ferrous26 commented 10 years ago

We have 32 levels, and less than 32 tasks. We can, and possibly should, give each task it's own priority level. We should at the least spread things out a lot more.

We can add #defines for these in respective server headers. term_server.h could have:

#define TERM_N_PRIORITY 30
#define TERM_C_PRIORITY 30
#define TERM_W_PRIORITY 25

Doing this might make it easier to set priorities relative to other tasks:

#define IDLE_UI_PRIORITY CLOCK_UI_PRIORITY

It is interesting to see how fiddling with priority levels causes us to miss deadlines during boot.

ferrous26 commented 10 years ago

I guess this is not getting done for kernel 4?

Unverified commented 10 years ago

it can, but I'm not really sure if i agree that all tasks so should really be sitting in its own priority level as much as the medium-low-high with a few exceptions that need to sit either higher or lower off of the baseline