6 , , . , , , (). , .
new Thread (Go).Start();
Go();
TT, . .
ThreadTest tt = new ThreadTest();
new Thread (tt.Go).Start();
tt.Go();
, , .Go , , , tt- ( .Go), 3. .Go tt, tt- done. Afaik, "", .
Also: I'm still shaky in several aspects of slicing. One riddle for me is what exactly happens to tt when it is executed new Thread (tt.Go).Start();... tt was created in the original thread, but now it lives in both cases. Is byref / byval used or is something else going on? Is it more accurate to say that the tt object does not actually "live" or "belongs" to any of the threads, but rather to a heap, and therefore both threads must have access to it?
source
share