Research Article

Priority-Based Resource Allocation and Energy Harvesting for WBAN Smart Health

Algorithm 1

Priority scheduling preemptive algorithm.
.: ; to analyze the user situation to decision
Maker.            
 while(ready null)
If(larger bust time of all users > coordinator user bust time)
  Each time slot-priority of process: ,
   Else            
 Sort the users based on the initialization: example;
P1:P7
 For : do,
  Implementing equations: 18-20
  Compute average WT, TAT, and CT
  Calculate the user chart based on: Remark 2
 Repeat: until user.     
 End if
End while.
Go to step 1: if a new user arrives ready in queue.