J
Jeff
Hi, I have an application that runs several threads. At various times those
threads will individually want to write to a shared file log.
So at program invocation the file log 'A' must be created (within its own
thread?). Later on, threads B, C & D will independantly want to write to log
A.
I can't quite seem to get my head round how I write this so that each thread
can see the same instance of the file log. (I guess they should write to it
using a synchronized write method).
Can anyone please shed some light on this?
Many thanks in anticipation.
Cheers
Jeff
threads will individually want to write to a shared file log.
So at program invocation the file log 'A' must be created (within its own
thread?). Later on, threads B, C & D will independantly want to write to log
A.
I can't quite seem to get my head round how I write this so that each thread
can see the same instance of the file log. (I guess they should write to it
using a synchronized write method).
Can anyone please shed some light on this?
Many thanks in anticipation.
Cheers
Jeff