F
fniles
If I use TextWriter synchronized method like below codes if another thread
is trying to write at the same time, what will happen ? Will it the 2nd
thread request to write to the file be queued ? Will the 2nd thread then
stop processing other codes while waiting to write to this file ?
Thank you.
Dim swLogOrig As StreamWriter
Dim swLog As TextWriter
swLogOrig = New StreamWriter(m_sLogFileName, True)
swLog = TextWriter.Synchronized(swLogOrig)
is trying to write at the same time, what will happen ? Will it the 2nd
thread request to write to the file be queued ? Will the 2nd thread then
stop processing other codes while waiting to write to this file ?
Thank you.
Dim swLogOrig As StreamWriter
Dim swLog As TextWriter
swLogOrig = New StreamWriter(m_sLogFileName, True)
swLog = TextWriter.Synchronized(swLogOrig)