Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to pause and resume the simulation?

  • Runnable monitor=new Runnable(){
    Public void run(){
    CloudSim.pauseSimulation(200);
    While(true){
    If(CloudSim.isPaused()){
    Break;
    }
    try{
    Thred.sleep(100);
    }catch(InterruptedException e){
    e.printStackTrace();
    }
    Log.printLine(ā€œ\n\nā€+CloudSim.clock()+ā€:The Simulation is paused for 5 sec \n\nā€);
    try{
    Thread.sleep(5000);
    }catch(InterruptedException e){
    e.printStackTrace();
    }
    //Add the cloudlet to the list and submit the list to the broker.
    CloudSim.resumeSimulation();
    };
    new Thread(monitor).start();
    Thread.sleep(1000);