starting to work on Linux
This commit is contained in:
parent
e127e40bb1
commit
955a2ca78d
5 changed files with 80 additions and 19 deletions
|
|
@ -184,7 +184,9 @@ scheduler(Proc *p)
|
|||
if(p->nthread == 0)
|
||||
goto Out;
|
||||
p->runrend.l = &p->lock;
|
||||
print("sleep for jobs %d\n", getpid());
|
||||
_procsleep(&p->runrend);
|
||||
print("wake from jobs %d\n", getpid());
|
||||
}
|
||||
delthread(&p->runqueue, t);
|
||||
unlock(&p->lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue