Hi,
I read in one of the postings about the use of singleton
pattern to make the appliaction
thread safety. But in that case, how the Sun provided interface is used? Cuase this class wont be able to implement it as the methods would be static.
I guess there must be a way to do this using wrapper or something. But I am not clear.
Can abybody give me rough class diagram of how the classes would look like in that case?
Also another question on File I/O:
I was thinking of only making update/write method thread safe and not the read method. (and I am doing this update, etc directly on file)
In that case, when some record is being updated, and at the same time a read is requested (by other client), will it not interfear? cause the file pointer will be shifted by the read.
How are you guys handaling this?
Awating for the response..
thanks,
manoj