From: <coa...@ti...> - 2008-12-26 00:58:10
|
Hello, I am an Italian student of the Faculty of "Ingegneria Informatica" of University of Catane, using Gridsim for my thesis. I'd like to know if there is a way to do many simulations with only one java process. For example: I want to check how my scheduling algorithm reacts to jobs of different length:short jobs and long jobs. To do this I want to make a simulation (SIMULATION_1) with a set of short gridlets and another simulation (SIMULATION_2) with a set of long gridlets. I'd like to start these two simulations with only one Java process. I've tried a possible solution: I've set up two thread one for simulation_1 and one for simulation_2. I've put GridSim.init(...) and GridSim. startGridSimulation() lines in the run() method of each of the two Threads. Thread_1 works -> OK Thread_2 doesn't work. In fact, when Thread_2 runs, all the Grid_sim entities doesn't execute their body() method. I am sure that Thread_2 starts only after that Thread_1 has Finished, because I've used the Thread.join() method and, in fact, on the screen appears: " ... Simulation completed. Initializing GridSim package ... " where "Simulation completed" refers to the simulation_1 and "Initializing GridSim package" refers to simulation_2. What happens? What else can I do? Is there anybody who can help me, please? Thanks. Con Tiscali Voce 8 Mega telefoni e navighi senza limiti a soli €15 AL MESE PER 1 ANNO. In seguito paghi €29,90 al mese. Attiva entro il giorno 08/01/09! http://abbonati.tiscali.it/promo/voce8mega/ |