Click here to Skip to main content
15,902,777 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Event Log Pin
leppie22-Aug-05 23:21
leppie22-Aug-05 23:21 
GeneralRe: Windows Event Log Pin
afterdeath22-Aug-05 23:45
afterdeath22-Aug-05 23:45 
GeneralRe: Windows Event Log Pin
leppie22-Aug-05 23:53
leppie22-Aug-05 23:53 
GeneralRe: Windows Event Log Pin
afterdeath23-Aug-05 1:26
afterdeath23-Aug-05 1:26 
Generalc# Word Addin - sinking events Pin
tartancli22-Aug-05 22:00
tartancli22-Aug-05 22:00 
GeneralSendKeys problem Pin
nc3b22-Aug-05 21:54
nc3b22-Aug-05 21:54 
Generalstatic Method And Thread Safety Pin
M.Waseem Chishti22-Aug-05 21:22
M.Waseem Chishti22-Aug-05 21:22 
GeneralRe: static Method And Thread Safety Pin
leppie22-Aug-05 23:25
leppie22-Aug-05 23:25 
M.Waseem Chishti wrote:
Lets suppose, I call this method from 50 threads simultaneously.
will All methods keep single copy of a. or each one will have its own copy.


You already wrote the code, what does it do? On the latter part, local variables are created and placed on the stack, so each call will have its own locals.

xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots
GeneralRe: static Method And Thread Safety Pin
M.Waseem Chishti23-Aug-05 0:13
M.Waseem Chishti23-Aug-05 0:13 
GeneralRe: static Method And Thread Safety Pin
Guffa23-Aug-05 0:40
Guffa23-Aug-05 0:40 
GeneralRe: static Method And Thread Safety Pin
HumanOsc22-Aug-05 23:58
HumanOsc22-Aug-05 23:58 
GeneralRe: static Method And Thread Safety Pin
M.Waseem Chishti23-Aug-05 0:15
M.Waseem Chishti23-Aug-05 0:15 
GeneralRe: static Method And Thread Safety Pin
Guffa23-Aug-05 0:06
Guffa23-Aug-05 0:06 
GeneralRe: static Method And Thread Safety Pin
M.Waseem Chishti23-Aug-05 0:29
M.Waseem Chishti23-Aug-05 0:29 
GeneralRe: static Method And Thread Safety Pin
Guffa23-Aug-05 0:44
Guffa23-Aug-05 0:44 
Generalcontrolling lcd Pin
Member 208806922-Aug-05 19:44
Member 208806922-Aug-05 19:44 
Generalread more bytes Pin
levi's22-Aug-05 19:44
levi's22-Aug-05 19:44 
GeneralRe: read more bytes Pin
HumanOsc23-Aug-05 0:15
HumanOsc23-Aug-05 0:15 
GeneralRe: read more bytes Pin
levi's23-Aug-05 17:39
levi's23-Aug-05 17:39 
GeneralContext menu in windows explorer Pin
Anonymous22-Aug-05 18:55
Anonymous22-Aug-05 18:55 
GeneralDetect SMTP MailServer Pin
machocr22-Aug-05 17:18
machocr22-Aug-05 17:18 
GeneralOwnerDraw PropertyGrid Pin
Shane Stevens22-Aug-05 15:51
Shane Stevens22-Aug-05 15:51 
GeneralTotal newb needs help. Pin
tomlog22-Aug-05 14:16
tomlog22-Aug-05 14:16 
GeneralRe: Total newb needs help. Pin
Christian Graus22-Aug-05 14:31
protectorChristian Graus22-Aug-05 14:31 
GeneralRe: Total newb needs help. Pin
tomlog23-Aug-05 6:30
tomlog23-Aug-05 6:30 

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.