"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Feb 22 02:54PM -0800 On 2/22/2021 12:20 AM, Bonita Montero wrote: >> You are familiar with reader/writer priority on rwmutex right? My impl >> alternates them in batches. > That doesn't make fairness. My version of "fairness", or being "starvation free", is when readers cannot starve out writers, and vise versa. Oh well. :^) |
Bonita Montero <Bonita.Montero@gmail.com>: Feb 23 08:38AM +0100 > My version of "fairness", or being "starvation free", is when readers > cannot starve out writers, and vise versa. Oh well. :^) That's impossible to implement. Readers or writers can hold the mutex as long as they want. |
"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>: Feb 23 12:25AM -0800 On 2/22/2021 11:38 PM, Bonita Montero wrote: >> cannot starve out writers, and vise versa. Oh well. :^) > That's impossible to implement. > Readers or writers can hold the mutex as long as they want. We just have radically different versions of what it means to be starvation free. :^) |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.programming.threads+unsubscribe@googlegroups.com. |
No comments:
Post a Comment