Click here to Skip to main content
15,796,886 members
Home / Discussions / C#
   

C#

 
GeneralRe: Debugging Hash Table Pin
Heath Stewart26-Apr-04 9:24
protectorHeath Stewart26-Apr-04 9:24 
GeneralConsole in Windows Pin
sreejith ss nair25-Apr-04 22:11
sreejith ss nair25-Apr-04 22:11 
GeneralRe: Console in Windows Pin
hammackj26-Apr-04 2:01
hammackj26-Apr-04 2:01 
GeneralQuestion about synchronization Pin
hsupercn25-Apr-04 21:42
hsupercn25-Apr-04 21:42 
GeneralRe: Question about synchronization Pin
Jeff Varszegi25-Apr-04 22:08
professionalJeff Varszegi25-Apr-04 22:08 
GeneralRe: Question about synchronization Pin
Heath Stewart26-Apr-04 4:16
protectorHeath Stewart26-Apr-04 4:16 
GeneralRe: Question about synchronization Pin
Jeff Varszegi26-Apr-04 5:20
professionalJeff Varszegi26-Apr-04 5:20 
GeneralRe: Question about synchronization Pin
Heath Stewart26-Apr-04 5:25
protectorHeath Stewart26-Apr-04 5:25 
The main reason the article discusses is that you shouldn't use it because it could create a race condition and dead-locking. As far as slow, I'm not sure about that. I supposed Dr. GUI would know better than I (or rather, his "nurses" as he calls them from time to time) but in my experience it seems okay. The instruction cound - while I know isn't everything - is really no different (for instance, if you locked against a property it could be from 2 to 5 instructions as opposed to 1 to 2 for a field). And getting a handle to the type I can't believe would be that slow. I could be wrong, though.

Anyway, the biggest reason not to use it because of the potential deadlocks that could occur.

To the original poster - if you're following along - you can see we all agree: don't use it! Smile | :)

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Question about synchronization Pin
Mike Dimmick26-Apr-04 1:45
Mike Dimmick26-Apr-04 1:45 
GeneralRe: Question about synchronization Pin
Jeff Varszegi26-Apr-04 5:23
professionalJeff Varszegi26-Apr-04 5:23 
GeneralEvaluating expressions Pin
Yaron K.25-Apr-04 21:04
Yaron K.25-Apr-04 21:04 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 21:37
professionalJeff Varszegi25-Apr-04 21:37 
GeneralRe: Evaluating expressions Pin
Yaron K.25-Apr-04 21:45
Yaron K.25-Apr-04 21:45 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 22:01
professionalJeff Varszegi25-Apr-04 22:01 
GeneralRe: Evaluating expressions Pin
Yaron K.26-Apr-04 2:35
Yaron K.26-Apr-04 2:35 
GeneralRe: Evaluating expressions Pin
Jeff Varszegi25-Apr-04 23:45
professionalJeff Varszegi25-Apr-04 23:45 
GeneralRe: Evaluating expressions Pin
Heath Stewart26-Apr-04 4:13
protectorHeath Stewart26-Apr-04 4:13 
GeneralClass Circular References Pin
Abner Mallidy25-Apr-04 19:40
Abner Mallidy25-Apr-04 19:40 
GeneralRe: Class Circular References Pin
Jeff Varszegi25-Apr-04 20:55
professionalJeff Varszegi25-Apr-04 20:55 
Questionhow to draw on a bitmap? Pin
lowiq25-Apr-04 19:08
lowiq25-Apr-04 19:08 
AnswerRe: how to draw on a bitmap? Pin
CWIZO25-Apr-04 22:25
CWIZO25-Apr-04 22:25 
GeneralRe: how to draw on a bitmap? Pin
lowiq25-Apr-04 22:58
lowiq25-Apr-04 22:58 
GeneralRe: how to draw on a bitmap? Pin
Heath Stewart26-Apr-04 4:08
protectorHeath Stewart26-Apr-04 4:08 
GeneralRe: how to draw on a bitmap? Pin
lowiq26-Apr-04 20:48
lowiq26-Apr-04 20:48 
GeneralRe: how to draw on a bitmap? Pin
Heath Stewart27-Apr-04 3:49
protectorHeath Stewart27-Apr-04 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.