Re: SUMMARY: Kernel Threads Usable By Mortals

David S. Miller (davem@caip.rutgers.edu)
Sun, 28 Apr 1996 22:39:45 -0400


Date: 28 Apr 1996 14:56:00 +0200
From: kai@khms.westfalen.de (Kai Henningsen)

There's simply no way to get this right without some sort of help
from the kernel.

Why not:

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

Later,
David S. Miller
davem@caip.rutgers.edu