lkml.org 
[lkml]   [1996]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SUMMARY: Kernel Threads Usable By Mortals
   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


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