Interview Questions March 08, 2006
- From: "Jobs" <jobatyourdoorstep@xxxxxxxxxxx>
- Date: 8 Mar 2006 08:28:30 -0800
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
jobatyourdoorstep@xxxxxxxxxxx
Looking for a onsite job mail your resumes at
jobatyourdoorstep@xxxxxxxxxxx
.
- Prev by Date: Re: MCSD vs. MCPD: wich path?
- Next by Date: Re: 71-553 and 71-554 experience
- Previous by thread: Re: MCSD vs. MCPD: wich path?
- Next by thread: Re: 71-553 and 71-554 experience
- Index(es):
Relevant Pages
|