This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10382 - [IndexedDB] Note on avoiding reader/writer starvation
Summary: [IndexedDB] Note on avoiding reader/writer starvation
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Indexed Database API (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Eliot Graff
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 23:53 UTC by Pablo Castro
Modified: 2010-10-05 17:18 UTC (History)
5 users (show)

See Also:


Attachments

Description Pablo Castro 2010-08-16 23:53:34 UTC
Since in locking-based implementations it's going to be relatively easy to get into a situation where readers starve writers when working concurrently, we should have a note in the transactions section that encourages implementations to have explicit mechanisms to avoid starvation. We don't want to be too prescriptive, perhaps simply this statement:

"UAs need to ensure a reasonable level of fairness across readers and writers to prevent starvation."

For reference, we discussed this here:
http://lists.w3.org/Archives/Public/public-webapps/2010JulSep/0504.html
Comment 1 Eliot Graff 2010-10-04 20:55:18 UTC
I'll take this bug and make this small change, adding the recommended text.
Comment 2 Eliot Graff 2010-10-05 17:18:34 UTC
Added this sentence:

User agents need to ensure a reasonable level of fairness across readers  and writers to prevent starvation. 

(In the check-in, I accidentally wrote, "per bug 10381" rather than "per bug 10382". Apologies for any confusion.)