Facebook
From Insensitive Meerkat, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 253
  1. #pragma once
  2. #include <map>
  3. #include <list>
  4. #include "procesy.h"
  5. extern class Tree;
  6. extern class MemoryMenager;
  7. class Planista
  8. {
  9. public:
  10.         Planista();
  11.         ~Planista();
  12.         void dodaj_do_kolejki(PCB &x);
  13.         void check(PCB &actual, Tree &t);
  14.         //void act(PCB &actual);
  15.         void make_zombie(PCB &actual, Tree &t, MemoryManager &mm);
  16. private:
  17.         std::map<int, std::list<PCB>>mapa_kolejek;                      //główna kolejka_bool do procesora 8 stopniowa
  18.         std::vector<bool>kolejka_bool;                                          //dodatkowa kolejka_bool wyboru mapy
  19.                                                                                                                 //void spr_kolejki();
  20.         std::vector<int>r_in_q;
  21.         void dzielnik_cpu();
  22.         void powrot_do_kolejki(PCB &X);
  23.         void run(Tree &t);
  24.         bool init_in = false;
  25. };
  26.  
  27.