[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] kern: simple futex for gnumach (version 4)
From: |
Marin Ramesa |
Subject: |
Re: [PATCH] kern: simple futex for gnumach (version 4) |
Date: |
Tue, 24 Dec 2013 16:55:47 +0100 |
On 12/24/2013 03:25:15 PM, Richard Braun wrote:
> There is a one call to vm_map lookup to retrive the offset and the
> object. Simple
How do you implement cross address space synchronization ?
I use a recursive futex_wake(). It first scans all the futexes if
they are on the same offset and if they share the same vm_object.
If they do, recursion is used to wake a number of threads in those
futexes. The number of threads awakened is constant troughout the
same offsets and in the same objects. In this way synchronization
is possible. I don't do anything in futex_wait().