[geeks] Solaris losing-writers question
Phil Stracchino
phil.stracchino at speakeasy.net
Fri Aug 12 23:20:05 CDT 2005
Patrick Giagnocavo 717-201-3366 wrote:
> Does one of the writers lose (not ending with the data being recorded)? Or does each writer write data into the file, but there are no guarantees which comes first?
What are you actually using to write the file? Assuming your code is
written correctly, what should happen is that the first thread opens the
file in exclusive mode and starts writing, the second finds the file
locked and blocks until it's available for writing again.
--
Phil Stracchino phil.stracchino at speakeasy.net
Renaissance Man, Unix generalist, Perl hacker
Mobile: 603-216-7037 Landline: 603-886-3518
More information about the geeks
mailing list