Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
gpucloudsim
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LPDS
gpucloudsim
Commits
5c5c8cd5
Commit
5c5c8cd5
authored
Sep 13, 2013
by
Nikolay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvement of DatcenterBroker::submitCloudlets().
parent
2faca426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DatacenterBroker.java
...src/main/java/org/cloudbus/cloudsim/DatacenterBroker.java
+3
-3
No files found.
modules/cloudsim/src/main/java/org/cloudbus/cloudsim/DatacenterBroker.java
View file @
5c5c8cd5
...
...
@@ -340,6 +340,7 @@ public class DatacenterBroker extends SimEntity {
*/
protected
void
submitCloudlets
()
{
int
vmIndex
=
0
;
List
<
Cloudlet
>
successfullySubmitted
=
new
ArrayList
<
Cloudlet
>();
for
(
Cloudlet
cloudlet
:
getCloudletList
())
{
Vm
vm
;
// if user didn't bind this cloudlet and it has not been executed yet
...
...
@@ -361,12 +362,11 @@ public class DatacenterBroker extends SimEntity {
cloudletsSubmitted
++;
vmIndex
=
(
vmIndex
+
1
)
%
getVmsCreatedList
().
size
();
getCloudletSubmittedList
().
add
(
cloudlet
);
successfullySubmitted
.
add
(
cloudlet
);
}
// remove submitted cloudlets from waiting list
for
(
Cloudlet
cloudlet
:
getCloudletSubmittedList
())
{
getCloudletList
().
remove
(
cloudlet
);
}
getCloudletList
().
removeAll
(
successfullySubmitted
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment