hi all
I have one problem in vb.net application.
I am having two threads which are starting at the same time.
Both these threads are reading one file and retrieving data from same
file.
When one thread start and during retrieving information from file, if i
abort thread then second thread is getting affected and is going to
infinite loop.
To allow only one thread to get access to file, should i use mutex
before starting actual reading of file.
Is it correct way. Please tell me when should i use mutex.
Please help me.
Thanks in advance.