From: Marcos D. de A. <ma...@cs...> - 2008-11-28 13:00:37
|
The time unit used for simulation in GridSim is the second. So, if a job takes 60 seconds in the 'real world' to be executed, when simulated in GridSim it should run for 60 time units. Sim_system maintains two event queues: the future event queue and the deferred queue. Sum_system has a loop that keeps iterating the future event queue while it is not empty. If you start the simulation and you have one event in the future event queue for time unit 10, then Sim_system will retrieve this event from the future event queue, set the clock to 10, put the event in the deferred event queue and wake up entities to handle events. If you have 15 events scheduled for time 10, Sim_system will remove all of them from future event queue and put them in the deferred event queue. After all entities handle the events, Sim_system's loop will retrieve the next event. If the next event is for time 50, then the same process will be repeated and the simulation clock will be set to 50. This is repeated until the future event queue is empty. This process is common in discrete event simulators. Regards, Marcos On 28/11/2008, at 11:29 PM, ye huang wrote: > Hi, Dear all: > I have a similar ask with Gilberto: how is GridSim clock ticking? > How to exchange the clock in GridSim and real world? I mean, One > realworld second equals to how many GridSim seconds? > > regards > ye > > On 24 Nov, 2008, at 12:35 PM, Gilberto Cunha wrote: > >> Hi... My name is Gilberto. >> >> I'm trying understand, how the clock of the gridsim work, but i >> don't understand very well.. >> Could you explain how gridsim clock is work and how the clock of >> the gridsim is increased? >> >> One doubt, for example: what's happen when: an entity 'X' is >> started and send an event for itself at 3600 seconds. After in >> other moment, an entity 'A' send an event for entity 'B' at 320 >> second. How GridSim clock is synchronized? >> >> Other doubt is, how resources register influence the gridsim clock? >> >> Regards and Thanks for your atention, >> >> Gilberto >> >> On Mon, Nov 24, 2008 at 7:18 AM, <gridsim-users- >> re...@li...> wrote: >> Send Gridsim-users mailing list submissions to >> gri...@li... >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> or, via email, send a message with subject or body 'help' to >> gri...@li... >> >> You can reach the person managing the list at >> gri...@li... >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Gridsim-users digest..." >> >> >> Today's Topics: >> >> 1. Re: GridSim instalation (Anthony Sulistio) >> >> >> --------------------------------------------------------------------- >> - >> >> Message: 1 >> Date: Mon, 24 Nov 2008 21:18:28 +1100 (EST) >> From: Anthony Sulistio <an...@cs...> >> Subject: Re: [GridSim-users] GridSim instalation >> To: Gil Noe Zavala Ramirez <gt...@ya...> >> Cc: her...@ho..., gri...@li... >> Message-ID: >> <Pin...@mu...> >> Content-Type: text/plain; charset="iso-8859-1" >> >> >> Hi Gil and Juan, >> >> On GridSim website, under the Documentation section, there >> are instructions on how to use GridSim with a Java IDE: >> * Eclipse http://www.gridbus.org/gridsim/paper/eclipse.pdf >> * JBuilder http://www.gridbus.org/gridsim/paper/jbuilder.pdf >> * JCreator http://www.gridbus.org/gridsim/paper/jcreator.pdf >> >> >> In the future, please email us through our mailing list: >> gridsim-users (at) lists.sourceforge.net : >> for general queries and feedbacks. >> >> gridsim-developers (at) lists.sourceforge.net : >> for contributing to GridSim or questions related to the existing >> GridSim code. >> >> To subscribe to the above mailing lists, please go to: >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> https://lists.sourceforge.net/lists/listinfo/gridsim-developers >> >> >> anthony >> >> >> On Thu, 20 Nov 2008, Gil Noe Zavala Ramirez wrote: >> >> > Hi >> > my name is Gil >> > and... >> > I am?student of the technologic institute of Mexicali http:// >> www.itmexicali.edu.mx/,?? >> > I have problems about how to install gridsimtoolkit in windows >> vista and >> > XP with easy eclipse or jcreator. >> > ? >> > the type of problem is shown like this: >> > ? >> > package Gridsim does not exist. >> > cannot find symbol class GridletList. >> > ? >> > please can you lend? a hand, Mr.Anthony. >> > ? >> > Regards: >> > ? >> > Zavala Ramirez Gil Noe. >> >> >> ?Todo sobre Amor y Sexo! >> La gu?a completa para tu vida en Mujer de Hoy. >> http://mx.mujer.yahoo.com/ >> >> ------------------------------ >> >> --------------------------------------------------------------------- >> ---- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> >> ------------------------------ >> >> _______________________________________________ >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >> >> End of Gridsim-users Digest, Vol 57, Issue 1 >> ******************************************** >> >> >> >> -- >> Gilberto Cunha Filho >> gil...@gm... >> SISMO - Laboratório de Sistemas e Mobilidade >> UFMA >> --------------------------------------------------------------------- >> ---- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users > > > > > > > ---------------------------------------------------------------------- > --- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gridsim-users mailing list > Gri...@li... > https://lists.sourceforge.net/lists/listinfo/gridsim-users Marcos Dias de Assuncao Grid Computing and Distributed Systems (GRIDS) Laboratory Department of Computer Science and Software Engineering The University of Melbourne, Australia Email: ma...@cs... ------------- "The bankers own the earth. Take it away from them, but leave them the power to create money, and with the flick of the pen they will create enough money to buy it back again. However, take away from them the power to create money, and all the great fortunes like mine will disappear and they ought to disappear, for this would be a happier and better world to live in. But, if you wish to remain the slaves of bankers and pay the cost of your own slavery, let them continue to create money." Sir Josiah Stamp Former Director of The Bank of England |