Newbie question on threads/processes

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I have a simple app that fires off a few things asynchronously... This is
necessary as the main app needs to continue to run and update the screen.
Fortunately all of these methods I'm invoking support async calls, such as
playing a sound, etc.

How do I go about creating a new thread or process to handle a series of
subroutines asynchronously?

Kind of new to GUI/front end programming so this concept is new to me...

Thanks,
Brian
 
Actually let me clarify:

I understand the basics of threading from a server's point of view but have
not tried this in a GUI app; I'm looking for help regarding threads in the
compact framework, any known issues, best practices, etc.

Thanks,
Brian
 
In general, use threads to do non UI tasks. You can use either Thread pools
or simple Thread objects.
If you want a thread to influence theUI, you will have to cause a delegate
on the mail UI thread to be called from the thread that has to initiate UI
change.

Barak


--------------------
 
Back
Top