GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — [MRESOLVER-522] File locking threads not entering critical region were "oversleeping" · Issue #1195 · apache/maven-resolver Closed DescriptionTamas Cservenak opened MRESOLVER-522 and commented Instead loser to immediately give up and sleep, should sit a while to enter critical region. This is important for "hot" locks. Explanation: currently a "loser" will immediately give up and will go to sleep 100ms, even if winner exits critical region within next 5ms (so lost 95ms). The retry is needed to ensure that it is retried as much as given time/unit takes, that was before consumed by constant retries+sleeps. The logic still works, as if tryLock spends time/unit waiting on critical region (which is possible only on VERY HIGHLY congested locks), there will be no retry happening. Still, now it may sleep 5ms, and "win" once "original winner" left the critical region. Issue Links:
Remote Links: 1 votes, 2 watchers ActivityMetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |