Re: Asynchronous Programming

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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?

.



Relevant Pages

  • Re: HELP on workspace
    ... variables that exist within a function's workspace are the ones you ... you can get them there using assignin or global variables). ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: New PowerPoint Indexer
    ... Why you don't like putting the global variables into CWinApp-derived ... obviously cannot conflict with the MFC class of the same name. ... I think the explanation is the same you wrote for CView0, ...
    (microsoft.public.vc.mfc)
  • Re: variable scope problem?
    ... accessible to anything after the declaration (think of several include ... files as one giant file, ... this should allow your global variables to be accessible from within ... Prev by Date: ...
    (alt.php)
  • Re: .so file used as multithreaded
    ... On Wed, 4 Jan 2006, puzzlecracker wrote: ... it uses global variables and other ... Rich Teer, SCNA, SCSA, OpenSolaris CAB member ... Prev by Date: ...
    (comp.unix.programmer)
  • Populating From & Thru Date Global Variables
    ... What's the best way of populating the From and Thru date Global Variables for ... a DTS to use as parameters in extract queries? ... Prev by Date: ...
    (microsoft.public.sqlserver.dts)