Overview
| Artifact ID: | cea36859e30177075596a40e89086643616ca156 |
|---|---|
| Ticket: | 962519ffffffffffffffffffffffffffffffffff
nativeFilesystemRecord comparisions invalid with threads |
| User & Date: | dgp on 2004-06-09 21:26:58 |
Changes
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Hi Zoran. Trouble is that the epoch checks are not working properly. See Tcl Bug 932314 for a report on that problem. The fact that this bug will also be corrected by a new approach is just an additional benefit. What I want to do is have all threads access a single copy of the filesystemList. I agree that doing that with MutexLock protection leads to unacceptable lock contention. So, I would migrate to concurrent-read, exclusive write locks on the resource. Access to filesystemList is read-mostly. Only FS registration and mounting cause writes, and they are much rarer than consulting the list to resolve paths. As long as the reads do not contend with one another for access, there should be little noticeable problem. I already have CREW locks in an implementation of my own filesystem, so I know they work, and it should not be too hard for me to work up a core patch. Sorry, I haven't done it yet. Been distracted by a few other things.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"