# ======================================== # ============= 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 for i in 1 2 3 4 5; 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}_task${i}_iter${var}.txt" # check if file is ok if [ -f "$file" ]; then # coefficient model if [[ $file = *coef_50* ]]; then # number of mode change line=`sed -n "s/hi_time_spend : \(.*\)/\1/p" < $file` if [ "$line" != "" ]; then quality+="$line;" fi; # paste into echo $quality >> data_eval_protocol${p}_cpu${TCU}.csv # reset variables quality="" fi fi done done arg=$(($TCU / 2)) superprogression $arg "scheduled" done done