![]() |
|
|
|||||||
![]() |
MCSD - Interview Questions March 08, 2006 |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
When working with shared data in threading how do you implement synchronization ? There are a somethings 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 doit at exactly the same time. To avoid the problem, you can lock a variable before accessingit. However, if two threads lock the same variable at the same time, you'll have a deadlockproblem. SyncLock x 'Do something with x End SyncLock Full Interview Questions for .NET and SQL Server http://www.geocities.com/dotnetinterviews/ Help the community to make job search easier mail your questions to Looking for a onsite job mail your resumes at Jobs |
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Java Interview Questions | steve.steve85 | Software | 0 | 09-28-2007 05:20 PM |
| Top Interview Questions | steve.steve85 | General Help Related Topics | 0 | 09-28-2007 05:19 PM |
| Classic Original Broadcasts Trading List - Updated ( w/o/c ) | porkys1982@sbcglobal.net | DVD Video | 0 | 12-05-2005 03:38 AM |
| Classic Original Broadcasts Trading List - Updated ( w/o/c ) | porkys1982@sbcglobal.net | DVD Video | 0 | 11-19-2005 04:46 PM |
| Original Airings : The A-Team , M*A*S*H , Taxi , Barney Miller , WKRP | porkys1982@sbcglobal.net | DVD Video | 0 | 08-15-2005 03:09 AM |