Messages in this thread | | | Date | Sun, 28 Apr 1996 22:39:45 -0400 | From | "David S. Miller" <> | Subject | Re: 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
| |