473,320 Members | 1,845 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to synchronize between those threads in VB.NET

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

Nov 21 '05 #1
1 3165
Hi,

Maybe this will help
http://msdn.microsoft.com/msdnmag/is...s/default.aspx

Ken
----------------
"Mamatha" <ma***********@yahoo.com> wrote in message
news:22****************************@phx.gbl...
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


Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jseidelREMOVECAPS | last post by:
I need to synchronize 4 different threads. I dont think wait() and notifyall() will work. Could someone explain how to do this? Jerry
8
by: Thomas Rademacher | last post by:
Hallo, I want to synchronize the main function of my script. I havn't a class structure in my script. def main(): # my code to synchronized if __name__=='__main__': main()
2
by: Sean | last post by:
I did not get too much help with me original question so here is another. I am trying to create a ColorPicker form for a Microsoft Access 2000 application. I will not use the...
1
by: Hewit | last post by:
DataTable Class documentation says. Thread Safety "This type is safe for multithreaded read operations. You must synchronize any write operations." In my web based application (ASP.Net)...
1
by: taleran58 | last post by:
Hi all. I'm writting a multithreading program that will update a loacal Access database. I'm using OleDB connection to get access to the database from each thread and my question is: how do I...
1
by: taleran58 | last post by:
Hi all. I'm writting a multithreading program that will update a loacal Access database. I'm using OleDB connection to get access to the database from each thread and my question is: how do I...
4
by: Naldo Alcalde | last post by:
Env: W2k, VS2005 Std Hi everybody, I have a application with threads writing simultaneously to the console with WriteLine. It is necessary the synchronization? I read...
0
by: krupa.p | last post by:
Hi All, I am trying to write a C# .Net desktop application that synchronizes files/folders on the PC with those on a Windows CE device, when the device is connected to the PC via ActiveSync. ...
1
by: John Vottero | last post by:
If I create a synchronized TextWriter with TextWriter.Synchronized(...), how do I make sure that all the writes are done before I Close()? Do I have to invent that synchronization mechanism...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.