Facebook
From Mammoth Goose, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 219
  1. void Planista::powrot_do_kolejki(PCB &x) {
  2.         x.Dynamic_priority = x.Priority + (x.CPU / 2);
  3.         if (x.Dynamic_priority > 31) { x.Dynamic_priority = 31; }
  4.         int nr = x.Dynamic_priority / 4;
  5.         mapa_kolejek[nr].push_back(&x);
  6.         kolejka_bool.at(nr) = true;
  7. }