G
Guest
Hi. I'm new to multithreading applications in .NET. What exactly is the difference between using synclock on a variable or using mutex.waitone/mutex.releasemutex
There is too much stuff out there on multithreading and I can't find a simple answer
Also, is this a "normal" way of writing to files in multithreading applications
Dim objReader As StreamWrite
SyncLock (objReader
objReader = New StreamWriter(System.AppDomain.CurrentDomain.BaseDirectory & ERR_FILE_NAME
objReader.Write(some message
objReader.Close(
End SyncLoc
Thank
JS
There is too much stuff out there on multithreading and I can't find a simple answer
Also, is this a "normal" way of writing to files in multithreading applications
Dim objReader As StreamWrite
SyncLock (objReader
objReader = New StreamWriter(System.AppDomain.CurrentDomain.BaseDirectory & ERR_FILE_NAME
objReader.Write(some message
objReader.Close(
End SyncLoc
Thank
JS