Discussion on:

2
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Monitor vs SyncLock
Me0001 24th Nov 2010
Is the SyncLock statement the same as the C# lock statement? and if so then it would also be implemented using a Monitor as it is in C#?

If this is the case it surprises me that the Monitor and SyncLock statements do not have closer results.
Monitor is better choice in some scenarios, it does morre so it costs more. In principle it gives you more granular control of locking.
If you only have one grain it's pointless, if your grains are the size of boulders it's also pointless. silly

If you are comparing these times to what you are getting now, well one or three things have changed since 2006....
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.