Re: SUMMARY: Kernel Threads Usable By Mortals

Alan Cox (alan@cymru.net)
Tue, 30 Apr 1996 09:27:33 +0100 (BST)


> Why not:
>
> void acquire_lock(lock)
> {
> repeat:
> while(mutex_held(lock))
> yield();
> if(!mutex_try(lock))
> goto repeat;
> }

It might get starvation problems.