lkml.org 
[lkml]   [1997]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: something to experiment with: LIFO and accept()
Date
>    It's my suspicion that if accept() woke up the last process to
> block on it then there'd be a performance improvement for servers
>
> Seems like a good idea, only two things concern me:
> 1) What if anything do the "standards" say about this?

POSIX 1003.1g draft 6.4 says nothing, and makes no 'fairness' guarantee.

> 2) There could be the possibility of starvation under some
> corener cases, this needs to be investigated.

That is the hard part of a wake_one semantic. We must wake_one who will
always complete or wake another

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