change pointers to avoid segfaults
predict that a task will use average resources before scheduling