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

activity 1.2 actually finished

parent 1c768cde
No related branches found
Tags tp1-act-1-2
No related merge requests found
......@@ -23,3 +23,5 @@ xv6.out*
submissions/
.~lock.*
tracking_down_panic
.vscode/*
.vscode
......@@ -482,12 +482,12 @@ wait(uint64 addr)
release(&p->lock);
return -1;
}
freeproc(np);
release(&np->lock);
acquire(&prio_lock);
acquire(&np->lock);
remove_from_prio_queue(np);
freeproc(np);
release(&np->lock);
release(&prio_lock);
......
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