lkml.org 
[lkml]   [1996]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: SUMMARY: Kernel Threads Usable By Mortals
Date
> Why not:
>
> void acquire_lock(lock)
> {
> repeat:
> while(mutex_held(lock))
> yield();
> if(!mutex_try(lock))
> goto repeat;
> }

It might get starvation problems.



\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.050 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site