Click here to Skip to main content
15,888,527 members
Home / Discussions / C#
   

C#

 
GeneralRe: how can i suppress Microsoft .NET security warning. Pin
Dattatraya K15-Jan-09 23:20
Dattatraya K15-Jan-09 23:20 
GeneralRe: how can i suppress Microsoft .NET security warning. Pin
SeMartens15-Jan-09 23:35
SeMartens15-Jan-09 23:35 
GeneralRe: how can i suppress Microsoft .NET security warning. Pin
Dave Kreskowiak16-Jan-09 4:01
mveDave Kreskowiak16-Jan-09 4:01 
QuestionProgramatically setting the smtp server in Outlook 2003 Pin
WritinCode15-Jan-09 22:51
WritinCode15-Jan-09 22:51 
AnswerRe: Programatically setting the smtp server in Outlook 2003 Pin
campurr3-Apr-10 5:44
campurr3-Apr-10 5:44 
QuestionSynchronization via Locks Pin
the_jat15-Jan-09 21:57
the_jat15-Jan-09 21:57 
AnswerRe: Synchronization via Locks Pin
SeMartens15-Jan-09 22:18
SeMartens15-Jan-09 22:18 
GeneralRe: Synchronization via Locks Pin
the_jat15-Jan-09 22:44
the_jat15-Jan-09 22:44 
Thanks for the answer.

I think that locks are more of a design thing, they do not protect anything(object..) by themself, but only restrict other threads to enter a code,, so the programmer is left with the arrangements of the lines-of-code that do and donnot modify a variable.

I think the nutshell author was wrong when he said that the lock protected the variables, when infact it was the arrangement of the code such that no line-of-code which modified the ... D'Oh! | :doh:

So would you say that locks D'Oh! | :doh:

I'm confused

Could you refer me to a book or an article that would not say that "lock enforce exclusive access to a resource", when infact(I think) they dont, and tell exactly what locks do and any good programming practice related to locks?

Thanks Smile | :)
GeneralRe: Synchronization via Locks Pin
N a v a n e e t h15-Jan-09 22:48
N a v a n e e t h15-Jan-09 22:48 
GeneralRe: Synchronization via Locks Pin
the_jat15-Jan-09 22:57
the_jat15-Jan-09 22:57 
AnswerRe: Synchronization via Locks [modified] Pin
Luc Pattyn16-Jan-09 1:53
sitebuilderLuc Pattyn16-Jan-09 1:53 
AnswerRe: Synchronization via Locks Pin
CPallini15-Jan-09 22:21
mveCPallini15-Jan-09 22:21 
GeneralRe: Synchronization via Locks Pin
the_jat15-Jan-09 22:32
the_jat15-Jan-09 22:32 
QuestionRe: Synchronization via Locks Pin
CPallini15-Jan-09 23:25
mveCPallini15-Jan-09 23:25 
AnswerRe: Synchronization via Locks Pin
the_jat15-Jan-09 23:43
the_jat15-Jan-09 23:43 
GeneralRe: Synchronization via Locks Pin
CPallini16-Jan-09 0:30
mveCPallini16-Jan-09 0:30 
AnswerRe: Synchronization via Locks Pin
N a v a n e e t h15-Jan-09 22:44
N a v a n e e t h15-Jan-09 22:44 
GeneralRe: Synchronization via Locks Pin
the_jat15-Jan-09 22:51
the_jat15-Jan-09 22:51 
GeneralRe: Synchronization via Locks Pin
SeMartens15-Jan-09 23:15
SeMartens15-Jan-09 23:15 
GeneralRe: Synchronization via Locks Pin
SeMartens15-Jan-09 23:24
SeMartens15-Jan-09 23:24 
GeneralRe: Synchronization via Locks Pin
the_jat15-Jan-09 23:32
the_jat15-Jan-09 23:32 
QuestionCan I programmatic enumerate running processes? Pin
devvvy15-Jan-09 20:18
devvvy15-Jan-09 20:18 
AnswerRe: Can I programmatic enumerate running processes? Pin
J a a n s15-Jan-09 20:36
professionalJ a a n s15-Jan-09 20:36 
GeneralRe: Can I programmatic enumerate running processes? Pin
SeMartens15-Jan-09 21:08
SeMartens15-Jan-09 21:08 
GeneralRe: Can I programmatic enumerate running processes? Pin
devvvy16-Jan-09 4:08
devvvy16-Jan-09 4:08 

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.