# ======================================== # ============= EXPERIMENTATION 1 ======== # Compute the tasks response time by # the CPU utilization parameter # and with the different coefference # case # parameters NT=8 NP=8 TCU=80 NHI=50 NME=25 coef=2 R=1 TQ=2 chaine="" worst="" best="" quality="" nbcount="" i=1 . ../../scripts/fonction.sh for p in 1 2; do # iterate on CPU utilization for TCU in 70 90 ; do # iteration for ((iter=1; iter<=1000; ++iter)); do if (( iter < 10 )) then var='0'$iter else var=$iter fi file="scheduled_taskset/protocol${p}_coef_50_cpu_${TCU}_iter${var}.txt" # check if file is ok if [ -f "$file" ]; then # coefficient model if [[ $file = *coef_50* ]]; then # Boucle pour lire chaque ligne du fichier while IFS= read -r line; do # Vérifier si la ligne commence par "Task" if [[ "$line" = *Task[1-8]* ]]; then # Compter les occurrences du mot "deadline" dans la ligne (insensible à la casse) count=$(grep -o -i "missed its deadline" <<< "$line" | wc -l) if [[ $i -eq 1 ]]; then nbcount="${count}" i=0 else nbcount="${nbcount};${count}" fi fi done < $file echo $nbcount >> data_eval_protocol${p}.csv i=1 nbcount="" fi fi done arg=$(($TCU / 2)) superprogression $arg "scheduled" done done