BusinessRx Community

Dedicated to the advancement of software, technology and the people who devote their lives to it.

Welcome to BusinessRx Community Sign in | Join | Help
in Search

BusinessRx Reading List

These blog entries are written by industry experts and leaders. We consider this content to be a good read for any software developer or web technologist.

What's Wrong With This Code? (#13)

 

For lucky #13, I want to know what can go terribly wrong with the following code, and why.

class HardWorker
{        
    
public void DoMultiThreadedWork(object someParameter)
    {
        
lock (lockObject)
        {
            
// ... lots of work ...
        }
    }

    
private string lockObject = "lockit";
}

 

Hint: Think about memory optimizations in the CLR.

Published Monday, March 26, 2007 9:34 PM by OdeToCode Blogs

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server, by Telligent Systems
'