Shared data of threading in .net framework

It is containing all topics related to Visual Basic, .NET Framework, Web Resource, GDI etc.
Ladva Nidhi
Posts: 295
Joined: Sat Sep 20, 2014 5:26 pm
Contact:

Shared data of threading in .net framework

Postby Ladva Nidhi » Thu Oct 16, 2014 2:42 am

How is shared data managed in threading?


Guest

Re: Shared data of threading in .net framework

Postby Guest » Fri Jul 31, 2015 7:57 am

There are certain situations that you need to be careful with when using threads. If two threads (e.g.the main and any worker threads) try to access the same variable at the same time, you'll have a problem. This can be very difficult to debug because they may not always do it at exactly the same time. To avoid the problem, you can lock a variable before accessing it. However, if the two threads lock the same variable at the same time, you will have a deadlock problem. :D :D


Return to “Visual Basic .NET and ASP.NET”

Who is online

Users browsing this forum: No registered users and 2 guests