-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes before replace the TreeSet in the CloudletSchedulerCompletely…
…Fair (CFS) by regular ArrayList. - The TreeSet uses a internal TreeMap (a Red-Black tree implementation) and requires each element to be unique. This uniqueness is ensured by sorting the elements using a Comparator. - However, as the the CFS uses the virtual runtime to sort the Cloudlets in Sets such as execution list and waiting list, this uniqueness cannot be ensured. - The duplication of virtual runtime causes several issues such as avoiding new elements with same vruntime to be added, removal of the wrong element of not fiding the element to be removed. - While a correct and efficient solution is not found, it is being used ArrayList instead.
- Loading branch information
1 parent
44e34c5
commit cae9d35
Showing
9 changed files
with
358 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.