Re: Asynchronous Programming
- From: bernardpace@xxxxxxxxx
- Date: 28 Sep 2005 23:36:53 -0700
Hi,
I read some pages from the link given, but I am note sure if I
understood well.
If I have a method that is called twice using two different threads
private void myMethod() {......}
Thread t1 = new Thread(new ThreadStart(myMethod);
Thread t2 = new Thread(new ThreadStart(myMethod);
t1.Start(); t2.Start();
If I'm correct, threads share memory. This applies for global
variables. In case of method class, should the two threads calling the
same method that I created conflict with each other, even if they are
accessing no global variables?
.
- Follow-Ups:
- Re: Asynchronous Programming
- From: Marcus Andrén
- Re: Asynchronous Programming
- References:
- Asynchronous Programming
- From: bernardpace
- Asynchronous Programming
- Prev by Date: Re: Reading heavy .TXT file with StreamReader
- Next by Date: Re: c# equivalent to select case true
- Previous by thread: Re: Asynchronous Programming
- Next by thread: Re: Asynchronous Programming
- Index(es):
Relevant Pages
|