3 ms·
How do you deal with concurrent write access, do you lock the file?
by zeptomu 10y ago
How do you deal with concurrent write access, do you lock the file?
- crucini 10y agoHe probably uses flock(2)
- zeptomu 10y agoBut isn't that hard to get right? At least if you using something like sqlite you get consistency guarantees. Consider your process writing to the file and dying during write() - do you recover and repair the file after you reschedule?
- aalbertson 10y agoRamdisk maybe?