multi-tasking question

S

swartzbill2000

Hello,
I am new to .Net. I come from a VB6 and VC6 ATL background. I want to
make a Window Form App with an additional worker thread. I want the
main UI thread to initiate functions running in the worker thread. I
then want the worker thread functions to call back to functions in the
main UI thread. I see the callback functions as being similar to WIN32
inter-thread postmessages. That is, the code executes in the UI thread,
and the worker thread blocks until completion of the callback function.
Is this possible in VB.Net? If so, where can I find the details to
implement it?
Bill
 
B

Brian Gideon

Use the Thread class to execute methods on another thread. Use the
Invoke method on the Form to marshal the execution of a delegate from
your worker thread to the UI thread.

Brian
 
C

Cor Ligthert [MVP]

Bill,

Have a look at this page, and tell than please again what you want, I think
that you mis use the term multitasking and because of that make it more
difficult to help you, because mostly it ends than in endless messages
because of misunderstandings..

http://en.wikipedia.org/wiki/Computer_multitasking

I assume that you mean multi threading if you really mean multitasking that
the communication should go by pipes/remoting.

I hope this helps,

Cor
 
S

swartzbill2000

Cor,
I mean multi-threading, as the body of my original email indicates.
Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top