How to synchronize between those threads in VB.NET

M

Mamatha

Hi

I have one application in VB.NET using mutiple threads.
While that application running,threads get some data and
placed it into a file.That same file is used contineously
by another threads in reading purpose.
If we put synchronize in writing mode then how can i read
from that file.
If we put synchronize in reading mode then how can i write
data into that file.

How can i prevent conflicts from those threads.

And how can i handle this?
If any one knows the solution please let me know because
this is a very urgent need for me.I will give a great
thanks to you.

Mamatha
 
K

Ken Tucker [MVP]

Hi,

Maybe this will help
http://msdn.microsoft.com/msdnmag/issues/04/09/BasicInstincts/default.aspx

Ken
----------------
Hi

I have one application in VB.NET using mutiple threads.
While that application running,threads get some data and
placed it into a file.That same file is used contineously
by another threads in reading purpose.
If we put synchronize in writing mode then how can i read
from that file.
If we put synchronize in reading mode then how can i write
data into that file.

How can i prevent conflicts from those threads.

And how can i handle this?
If any one knows the solution please let me know because
this is a very urgent need for me.I will give a great
thanks to you.

Mamatha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top