Scheduler now has a first fit algorithm based on memory, cpu, and watts. Watts need to be set by the user but should be calculated through heuristics. Framework now also works by having a set of tasks and launching them.

This commit is contained in:
Renan DelValle 2016-09-16 19:06:53 -04:00
parent 37ed6ddf8f
commit 71f0896986
6 changed files with 142 additions and 83 deletions

2
pcp.go
View file

@ -7,7 +7,7 @@ import (
"os/exec"
)
func main() {
func PCP() {
cmd := exec.Command("sh", "-c", "pmdumptext -m -l -o -d , -c config")
stdout, err := os.Create("./output.txt")
cmd.Stdout = stdout