|
Algorithm 3 DVFS and Virtual Task Injection |
-
1:
current temperature sensor values;
-
2:
Calculate with using Equation (1);
-
3:
;
-
4:
;
-
5:
for to M
do ▹ For each core
-
6:
while
do
-
7:
if
then ▹ Frequency scaling
-
8:
when , to ;
-
9:
else ▹ Virtual task injection
-
10:
if
then
-
11:
;
-
12:
set and update ;
-
13:
;
-
14:
else
-
15:
break;
-
16:
end if
-
17:
end if
-
18:
update ;
-
19:
end while
-
20:
end for
|