//dodawanie na koncu
 public void Addapplication(Application r)
 {
     size++;
         queue[size - 1] = r;
 }
 public Application NewApp()
 {
     Application app = new Application(Program.time, max_duration, 0, stream_number);
     return app;
 }