<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10382</bug_id>
          
          <creation_ts>2010-08-16 23:53:34 +0000</creation_ts>
          <short_desc>[IndexedDB] Note on avoiding reader/writer starvation</short_desc>
          <delta_ts>2010-10-05 17:18:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Indexed Database API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pablo Castro">pablo.castro</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</cc>
    
    <cc>jorlow</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sdwilsh</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37538</commentid>
    <comment_count>0</comment_count>
    <who name="Pablo Castro">pablo.castro</who>
    <bug_when>2010-08-16 23:53:34 +0000</bug_when>
    <thetext>Since in locking-based implementations it&apos;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&apos;t want to be too prescriptive, perhaps simply this statement:

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

For reference, we discussed this here:
http://lists.w3.org/Archives/Public/public-webapps/2010JulSep/0504.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40570</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-10-04 20:55:18 +0000</bug_when>
    <thetext>I&apos;ll take this bug and make this small change, adding the recommended text.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40650</commentid>
    <comment_count>2</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-10-05 17:18:34 +0000</bug_when>
    <thetext>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, &quot;per bug 10381&quot; rather than &quot;per bug 10382&quot;. Apologies for any confusion.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>