Closed GoogleCodeExporter closed 9 years ago
The problem does not seem to relate to the example or dynamic creation of
Brokers; instead, it seems to be related to Future queue access in CloudSim
core.
Original comment by rodrigo.calheiros
on 19 Jul 2011 at 4:15
The problem is caused because startEntity() method sometimes tries to add
Events to the future queue. Because this queue is being iterated (so the
dynamic event creation is captured), modification of it (to add the new
element) is illegal.
A possible solution: postpone execution of startEntity() to a point AFTER
iteration over the list in CloudSim.runClockTick() (requires major
modifications in the code) or modifying the send() (and related methods) in
CloudSim to send these messages to the deferred list (example, by capturing the
ConcurrentEventModification in these methods and adding events failed to be
added to future to deferred.
Original comment by rodrigo.calheiros
on 19 Jul 2011 at 7:42
Original comment by rodrigo.calheiros
on 15 Dec 2011 at 4:06
We will postpone solution of this issue for a future release, so we can decide
if the feature in question (dynamic creation of entities) is really necessary.
Original comment by rodrigo.calheiros
on 16 Dec 2011 at 5:52
Original issue reported on code.google.com by
rodrigo.calheiros
on 19 Jul 2011 at 12:26