Click here to Skip to main content
16,004,887 members
Home / Discussions / C#
   

C#

 
Questionlock statements - backstage... Pin
Shy Agam19-Dec-06 19:28
Shy Agam19-Dec-06 19:28 
AnswerRe: lock statements - backstage... Pin
Tarakeshwar Reddy19-Dec-06 19:42
professionalTarakeshwar Reddy19-Dec-06 19:42 
GeneralRe: lock statements - backstage... Pin
Shy Agam19-Dec-06 19:49
Shy Agam19-Dec-06 19:49 
GeneralRe: lock statements - backstage... Pin
Tarakeshwar Reddy19-Dec-06 19:59
professionalTarakeshwar Reddy19-Dec-06 19:59 
GeneralRe: lock statements - backstage... Pin
Shy Agam19-Dec-06 20:23
Shy Agam19-Dec-06 20:23 
GeneralRe: lock statements - backstage... Pin
S. Senthil Kumar19-Dec-06 21:17
S. Senthil Kumar19-Dec-06 21:17 
GeneralRe: lock statements - backstage... Pin
Shy Agam19-Dec-06 21:25
Shy Agam19-Dec-06 21:25 
AnswerRe: lock statements - backstage... Pin
Mairaaj Khan19-Dec-06 21:09
professionalMairaaj Khan19-Dec-06 21:09 
Calls to System.Threading.Monitor.Enter() and System.Monitor.Exit() marks the critical section of the code. Like,
//your non critical code
System.Threading.Monitor.Enter(this);
 //do something critical
System.Threading.Monitor.Exit(this);
//remaining code

(System.Threading.Monitor is one of the .NET base class).
Now, what ever thread make call to the Monitor.Enter() first, this call will ensure that the first thread will finishes first (which is marked by calling the Monitor.Exit() method), before any other thread gain access to the code/method.



________________________________
Success is not something to wait for, its something to work for.

AnswerRe: lock statements - backstage... Pin
Guffa19-Dec-06 23:22
Guffa19-Dec-06 23:22 
Questiondeletion in listview Pin
dsl/fahk19-Dec-06 18:55
dsl/fahk19-Dec-06 18:55 
AnswerRe: deletion in listview Pin
jdkulkarni19-Dec-06 19:21
jdkulkarni19-Dec-06 19:21 
QuestionGetting reference of calling Assembly. Pin
Syed Muhammad Kamran19-Dec-06 18:45
Syed Muhammad Kamran19-Dec-06 18:45 
GeneralRe: Getting reference of calling Assembly. Pin
Guffa19-Dec-06 19:17
Guffa19-Dec-06 19:17 
AnswerRe: Getting reference of calling Assembly. Pin
Nader Elshehabi19-Dec-06 20:43
Nader Elshehabi19-Dec-06 20:43 
GeneralRe: Getting reference of calling Assembly. [modified] Pin
Syed Muhammad Kamran19-Dec-06 20:53
Syed Muhammad Kamran19-Dec-06 20:53 
GeneralRe: Getting reference of calling Assembly. Pin
Nader Elshehabi21-Dec-06 0:06
Nader Elshehabi21-Dec-06 0:06 
QuestionPlz help me How client should identify Server ? Pin
Sanjib Raj19-Dec-06 17:43
Sanjib Raj19-Dec-06 17:43 
AnswerRe: Plz help me How client should identify Server ? Pin
Tarakeshwar Reddy19-Dec-06 18:19
professionalTarakeshwar Reddy19-Dec-06 18:19 
QuestionSharing data between remoting and app layers Pin
drinkingbird19-Dec-06 17:27
drinkingbird19-Dec-06 17:27 
AnswerRe: Sharing data between remoting and app layers Pin
Chris Buckett22-Dec-06 3:05
Chris Buckett22-Dec-06 3:05 
QuestionBIOS interrupt call from c# Pin
Niiiissssshhhhhuuuuu19-Dec-06 16:47
Niiiissssshhhhhuuuuu19-Dec-06 16:47 
AnswerRe: BIOS interrupt call from c# Pin
Nader Elshehabi19-Dec-06 19:51
Nader Elshehabi19-Dec-06 19:51 
GeneralRe: BIOS interrupt call from c# Pin
Niiiissssshhhhhuuuuu19-Dec-06 20:15
Niiiissssshhhhhuuuuu19-Dec-06 20:15 
GeneralRe: BIOS interrupt call from c# Pin
Nader Elshehabi19-Dec-06 20:37
Nader Elshehabi19-Dec-06 20:37 
GeneralRe: BIOS interrupt call from c# Pin
Niiiissssshhhhhuuuuu20-Dec-06 1:09
Niiiissssshhhhhuuuuu20-Dec-06 1:09 

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.