@Override
    public void run(){
        while(true){
            try {
                Thread.sleep(20);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            int sumMeals = 0;
            for( Thread t :philosophen){
                sumMeals += ((Philosoph)t).getMeals();
            }
            double med = (sumMeals/(double)philosophen.length)+10;
            for( Thread t :philosophen){
                if(((Philosoph)t).getMeals()>med){
                    //System.out.println("Blocke Thread"+ ((Philosoph)t).getId());
                    ((Philosoph)t).setBlocked();

                }
            }

        }
    }