Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# locks and atomicity Pin
User 665824-Jun-08 10:34
User 665824-Jun-08 10:34 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango24-Jun-08 11:10
sponsorJudah Gabriel Himango24-Jun-08 11:10 
GeneralRe: C# locks and atomicity Pin
User 665824-Jun-08 11:21
User 665824-Jun-08 11:21 
GeneralRe: C# locks and atomicity Pin
Joe Woodbury24-Jun-08 10:56
professionalJoe Woodbury24-Jun-08 10:56 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango24-Jun-08 10:59
sponsorJudah Gabriel Himango24-Jun-08 10:59 
GeneralRe: C# locks and atomicity Pin
leppie24-Jun-08 20:01
leppie24-Jun-08 20:01 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango25-Jun-08 5:01
sponsorJudah Gabriel Himango25-Jun-08 5:01 
GeneralRe: C# locks and atomicity Pin
Frank Horn24-Jun-08 22:36
Frank Horn24-Jun-08 22:36 
If thread1 calls Foo and then thread2 calls Foo while DoSomething is running, it will be allright because thread2 can't enter the lock owned by thread1. But if thread1 calls Foo again while DoSomething is still running on behalf of thread1's first Foo call, it can go wrong. Thread1 can enter Foo because it's the owner of the lock, so it starts a second DoSomething pool thread. Now when the first DoSomething pool thread is done (after the second DoSomething pool thread has started) it will set isWorking to false and release the lock in OnDoSomethingCompletedAsync. So when the second DoSomething pool thread is done and no one has meanwhile called Foo again, the second DoSomething pool thread will enter OnDoSomethingCompletedAsync and find isWorking = false.
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango25-Jun-08 5:06
sponsorJudah Gabriel Himango25-Jun-08 5:06 
GeneralRe: C# locks and atomicity Pin
Frank Horn25-Jun-08 21:30
Frank Horn25-Jun-08 21:30 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango26-Jun-08 5:12
sponsorJudah Gabriel Himango26-Jun-08 5:12 
GeneralRe: C# locks and atomicity Pin
Frank Horn26-Jun-08 7:50
Frank Horn26-Jun-08 7:50 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango26-Jun-08 8:28
sponsorJudah Gabriel Himango26-Jun-08 8:28 
GeneralRe: C# locks and atomicity Pin
Frank Horn26-Jun-08 9:48
Frank Horn26-Jun-08 9:48 
GeneralRe: C# locks and atomicity Pin
Judah Gabriel Himango26-Jun-08 12:08
sponsorJudah Gabriel Himango26-Jun-08 12:08 
GeneralRe: C# locks and atomicity Pin
Frank Horn26-Jun-08 20:44
Frank Horn26-Jun-08 20:44 
QuestionGet Struct Element by string Pin
robert rodgers24-Jun-08 8:47
robert rodgers24-Jun-08 8:47 
AnswerRe: Get Struct Element by string Pin
Judah Gabriel Himango24-Jun-08 10:24
sponsorJudah Gabriel Himango24-Jun-08 10:24 
GeneralRe: Get Struct Element by string Pin
robert rodgers25-Jun-08 3:34
robert rodgers25-Jun-08 3:34 
GeneralRe: Get Struct Element by string Pin
robert rodgers25-Jun-08 3:42
robert rodgers25-Jun-08 3:42 
GeneralRe: Get Struct Element by string Pin
Judah Gabriel Himango25-Jun-08 4:55
sponsorJudah Gabriel Himango25-Jun-08 4:55 
GeneralRe: Get Struct Element by string Pin
robert rodgers25-Jun-08 5:22
robert rodgers25-Jun-08 5:22 
QuestionI am trying to save chinese charecter into sql 2005 database from asp.net,c# website Pin
mdpavel24-Jun-08 6:32
mdpavel24-Jun-08 6:32 
AnswerRe: I am trying to save chinese charecter into sql 2005 database from asp.net,c# website Pin
Paul Conrad24-Jun-08 6:51
professionalPaul Conrad24-Jun-08 6:51 
AnswerRe: I am trying to save chinese charecter into sql 2005 database from asp.net,c# website Pin
Ennis Ray Lynch, Jr.24-Jun-08 7:02
Ennis Ray Lynch, Jr.24-Jun-08 7:02 

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.