Newsgroups: comp.programming.threads
From: Ben Hutchings <ben-public-nos...@decadentplace.org.uk>
Date: Fri, 1 Apr 2005 16:23:07 +0100
Local: Fri, Apr 1 2005 10:23 am
Subject: Re: Real cause of spurious wakeups
Vladimir Prus wrote: The futex() caller may want to respond to the signal. Also signal > Joe Seigh wrote: >>> But note that "it isn't difficult to abstractly imagine machines and >> The examples were probably some of the current implementations. I > So, > Well, that's a reason. However, there are still two questions: > - why wait of futex returns on signals? handling can involve calling user-space code, which may make it hard to preserve the in-kernel context of the futex() call. > - as you indicate, cond_wait returns on EINTR just because it's allowed to. <snip> > Would be possible to waits on futex again in that case. No, because a notification might be missed. Ben. -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||