Research Article

Process Completing Sequences for Resource Allocation Systems with Synchronization

Algorithm 1

For every 𝑑 ∈ 𝑇 S y n c h
 //Check for violations of the first necessary condition
 Find π‘Ÿ 𝑖 such that π‘Š ( π‘Ÿ 𝑖 βˆ‘ , 𝑑 ) + 𝑝 ∈ β€’ 𝑑 ∩ 𝑃 𝑆 𝑒 𝑖 ( 𝑝 ) > 𝐢 𝑖
 If successful, return Not Quasi-live
 //Check for violations of the second necessary condition
 Else π‘˜ = 1
  While π‘˜ < 𝐾 = | β€’ 𝑑 ∩ 𝑃 𝑆 |
   subset_count = 0
   For each 𝑆 π‘˜ βŠ† β€’ 𝑑 ∩ 𝑃 𝑆
    place_count = 0
    For each 𝑝 ∈ ( 𝑆 π‘˜ ) 𝑐
     Find π‘Ÿ 𝑖 βˆ‘ 𝑠 𝑑 𝑝 ∈ 𝑆 π‘˜ 𝑒 𝑖 ( 𝑝 ) + π‘Š ( π‘Ÿ 𝑖 , β€’ 𝑝 ) > 𝐢 𝑖
     If successful, place_count + +
    End For
    If place_count = | ( 𝑆 π‘˜ ) 𝑐 | , subset_counter + +
   End For
   If subset_count = ( | β€’ 𝑑 ∩ 𝑃 𝑆 | π‘˜ ) , return Not Quasi-live
    π‘˜ + +
  End While
 End For
 Return Unknown