Skip to main content
. 2021 Dec 24;22(1):108. doi: 10.3390/s22010108
Algorithm 4. Task Scheduling Decision.
Input: Input from Table 1 (LEGENDS Table)
Output: Job Scheduling
1: MobInfo(B, T, L, App, S)
2: JobNum(m)
3: NodeNum(n)
4: FetchInfo(T)
5: CreateNodeNew(VM, N, Schedular)
6: Execution of Algorithms 1–3.
6: Send(T, D, C)  Schedular( )
7: for (T ≥ 0) do 
           calculateexe_time( ) 
                F ← ΔTmTexc
    end for
8: while (job_size ≤ threshold) do 
            C(BFMbMlocMstorage)
            if (C ≤ M) then
                   job_exeM( )
            else
                 activeCloud(VM)
                  submitC(J)( )
                  exejob( )
          end if
     end while
9: Job_stateStore( )