Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
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 
Just an addition.

Think of a house containing your code. The frontdoor has a doorman, who keeps an eye that only one person is in the house at the same time. Inside the house is a box, containing a number (this is the static variable). If everybody who wants to look into the box, or put sth else in the box is using the front door to enter the house everything is okay. But if the house has a backdoor (the architect/programmer didn't pay attention to this) the doorman doesn't know if there is more than one person in the house. So it is possible that two or more persons get to that box and modify the content.

To avoid this, you could assure that there is no backdoor, or you order another doorman (another lock-construct) for the backdoor.

Hope this associativity makes it a bit clearer.

Regards
Sebastian

P.S.: The doorman doesn't know what is inside the house, he is just protecting the front door.

It's not a bug, it's a feature!

Me in Softwareland.

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 
AnswerRe: Can I programmatic enumerate running processes? Pin
Bharat Jain15-Jan-09 21:13
Bharat Jain15-Jan-09 21:13 
QuestionTCP/IP programming in web Pin
kiran_kumar53815-Jan-09 20:11
kiran_kumar53815-Jan-09 20:11 
AnswerRe: TCP/IP programming in web Pin
SeMartens16-Jan-09 3:37
SeMartens16-Jan-09 3:37 
QuestionAdding list of File names from Folder to a Dropdownlist in C# Pin
Vimalsoft(Pty) Ltd15-Jan-09 20:08
professionalVimalsoft(Pty) Ltd15-Jan-09 20:08 
AnswerRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Guffa15-Jan-09 20:21
Guffa15-Jan-09 20:21 
GeneralRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Vimalsoft(Pty) Ltd15-Jan-09 20:36
professionalVimalsoft(Pty) Ltd15-Jan-09 20:36 
GeneralRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Guffa15-Jan-09 20:53
Guffa15-Jan-09 20:53 
GeneralRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Vimalsoft(Pty) Ltd15-Jan-09 21:00
professionalVimalsoft(Pty) Ltd15-Jan-09 21:00 
GeneralRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Giorgi Dalakishvili15-Jan-09 22:18
mentorGiorgi Dalakishvili15-Jan-09 22:18 
GeneralRe: Adding list of File names from Folder to a Dropdownlist in C# Pin
Guffa16-Jan-09 1:20
Guffa16-Jan-09 1:20 
QuestionArrayList as member of another array list Pin
ptr_Electron15-Jan-09 19:49
ptr_Electron15-Jan-09 19:49 
AnswerRe: ArrayList as member of another array list Pin
Guffa15-Jan-09 20:25
Guffa15-Jan-09 20:25 

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.