starting to work on Linux

This commit is contained in:
rsc 2004-12-27 18:21:58 +00:00
parent e127e40bb1
commit 955a2ca78d
5 changed files with 80 additions and 19 deletions

View file

@ -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);