Skip to content
Snippets Groups Projects
Commit 2dadbcdc authored by Fache Charles's avatar Fache Charles
Browse files

3.1: wrote simple nice() that returns 0

parent e87bb9f9
No related branches found
Tags tp1-act-3-1
No related merge requests found
......@@ -819,3 +819,11 @@ void priodump(void){
printf("\n");
}
}
// Changes the priority of the process that has
// a given pid to the value given, returns 1 if
// the provided pid is valid, 0 otherwise
int
nice(int pid, int priority) {
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment