----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: ChangingShiv Message 1 in Discussion 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 [EMAIL PROTECTED] Looking for a onsite job mail your resumes at [EMAIL PROTECTED] ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
