Go Back   Velocity Reviews > Newsgroups > MCSD
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

MCSD - Interview Questions March 08, 2006

 
Thread Tools Search this Thread
Old 03-08-2006, 04:28 PM   #1
Default Interview Questions March 08, 2006




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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46