Just a quick question about ReadWriteLocks in Java (specifically the ReentrantReadWriteLock implementation) as I don’t find the sun documentation clear.
What happens if a read lock is held by a thread when a write lock is requested by another?
Does the write lock thread have to wait for all currently held read-locks to be released?
Als...
Hey Guys,
Is it possible to read from a SQLite db while it's being written to?
I'm aware that access is blocked for writes when it's being written to, but is that the same for reads?
...
I'm writing something to handle concurrent read/write requests to a database file.
ReentrantReadWriteLock looks like a good match. If all threads access a shared RandomAccessFile object, do I need to worry about the file pointer with concurrent readers? Consider this example:
import java.io.FileNotFoundException;
import java.io.IOExc...
So I am implementing DocumentListener in order to make a search text field that will perform searches as the user types. All of that is working correctly, but I recently also discovered a need to modify what the user has put into the text field. For example, I have a function that is removing any character not in the extended ascii set, ...