// JP opened flex table

Click to See Complete Forum and Search --> : multithread


lwong
March 29th, 2004, 08:37 AM
hi,
I want to create multithread for my function, (function in different classes), how can i do that and how to call multithread function?

TDM
March 29th, 2004, 09:02 AM
You don't really "call" a thread, you start, stop suspend, resume it...... You don't need a new thread to call a function in another class.

Multithreading (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_multithreading.3a_.creating_worker_threads.asp)

TDM

lwong
March 29th, 2004, 09:39 AM
how the thread be started? it need running under which class? Cview or CDoc or others?
To create multithread, what need to consider?

GCDEF
March 29th, 2004, 10:04 AM
You need to consider why you think you need it in the first place. Multi-threaded apps have their place, but with added complexity. Unless you have a really compelling reason why you need seperate threads, I would avoid their use.

Andreas Masur
March 29th, 2004, 10:07 AM
[Moved thread]

lwong
March 29th, 2004, 01:34 PM
i have program which have two panels, one is CView, one is Form,
I find if I refresh Form, the action(draw the graphic) in CView will stop, can multithread slove this problem? but I not familiar with the multithread, I have function in Form Class and Cview class, How can I use multithread????
Thank you.

//JP added flex table