Research Article

Multiobjective Glowworm Swarm Optimization-Based Dynamic Replication Algorithm for Real-Time Distributed Databases

Algorithm 1

Window mechanism.
Initialize the servers and subservers
For each time unit
 If there is request REQ for data d with time deadline
  If does not exist
   Generate and insert REQ into ;
   ; ;
  Else If REQ is a read request
   Insert REQ into ; ;
  Else
   Service the requests in ; Insert REQ into ; ; ;
  End if
 End if
End for
For each presently existing request window in processor q
;;
 If
  Service the requests in ; Delete ;
  If (q is a server of data )
   Invalid the copies of in processors that fit to ;
   Empty ;
  
  End if
 Else if
  Service the requests in ; ; ;
 End if
End for