GridSim Examples

March 2006

 

Contents

To understand on how to use GridSim, please go through the examples provided below. Example 1 - 6 are mainly for beginners, whereas the rest describes more complex GridSim functionalities.

At the moment, GridSim has two allocation policies or scheduling algorithms, i.e. First Come First Service (as described in SpaceShared.java) and Round Robin (as described in TimeShared.java). If you are interested in writing a new scheduling algorithm of a resource, then look closely on Example 8.

These examples are also included in the download package.



GridSim Example 1

This example shows how to create one Grid resource with three machines.
List of files:



GridSim Example 2

This example shows how to create one or more Grid users. A Grid user contains one or more Gridlets. Therefore, this example also shows how to create Gridlets with and without using GridSimRandom class.
List of files:



GridSim Example 3

This example shows how two GridSim entities interact with each other.
List of files:



GridSim Example 4

This example shows how a grid user submits its Gridlets or tasks to one grid resource entity.
List of files:



GridSim Example 5

This example shows how a grid user submits its Gridlets or task to many grid resource entities.
List of files:



GridSim Example 6

This example shows how one or more grid users submit their Gridlets or task to many grid resource entities.


GridSim Example 7

This example shows how to migrate Gridlets and other stuff such as cancel / pause / resume
NOTE: This example can only be run under GridSim version 2.2 onwards


GridSim Example 8

This example shows how to make a new and simple grid scheduler in GridSim.
NOTE: This example can only be run under GridSim version 2.2 onwards


GridSim Example 9

This example shows how to make new GridResource and GridInformationService entities.
NOTE: This example can only be run under GridSim version 3.0 onwards


GridSim Example 10

This example shows how to use Advanced Reservation functionalities.
NOTE: This example can only be run under GridSim version 3.0 onwards


GridSim Regional GIS Example

This example shows how to create multiple regional GridInformationService (GIS) entities in a network topology.
NOTE: This example can only be run under GridSim version 3.2 onwards


Back to GridSim homepage