| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Sched
Description
The global scheduler that schedules COGs (single-objects in our case)
The global scheduler employs a fixed roun-robin scheduling strategy.
Documentation
run' :: Int -> Method -> Int -> IO () Source
The main entrypoint. Should be written in Haskell as:
main = run' maxIterations mainABSmethod attributeArraySize
Function just initializes the configuration (the heap and scheduler-queue) and starts the global scheduler.
Arguments
| :: Int | number of iterations to run |
| -> Method | which is the ABS main-block (method with no this context) |
| -> Int | a fixed size for the attribute-array (i.e. how many possible attribute names) |
| -> IO Heap | the statement-count and the final heap after executing of the program |
Similar to run', but returns the final heap
Function just initializes the configuration (the heap and scheduler-queue) and starts the global scheduler.