PC Review


Reply
Thread Tools Rate Thread

abouth threads

 
 
rocio
Guest
Posts: n/a
 
      26th Nov 2003
When developing fot he PocketPC, when do one need to worry about threads? I
have finished developing a windows app. for the Pocket PC, without using any
threads, and was wondering when& how to use them. Can anyone point to a good
intro. of threads for the .NET CF ?

Thanks for all your comments & replies to my postings here. You all were
very helpful.



 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      26th Nov 2003
You should use threads when multiple operations need to be taking place at
the same time, effectively. The classic example of a multi-threaded GUI
application is one where the user interface continues to respond while a
long file copy is taking place. The GUI provides the dialog showing the
progress, or even the ability to do more things, while the worker thread
performs the copy and notifies the GUI thread of its progress as it goes
along.

Don't think of threads as a cool thing that any good program should use. If
you need them, I think you'll know it...

Paul T.

"rocio" <(E-Mail Removed)> wrote in message
news:%23J4%(E-Mail Removed)...
> When developing fot he PocketPC, when do one need to worry about threads?

I
> have finished developing a windows app. for the Pocket PC, without using

any
> threads, and was wondering when& how to use them. Can anyone point to a

good
> intro. of threads for the .NET CF ?
>
> Thanks for all your comments & replies to my postings here. You all were
> very helpful.
>
>
>



 
Reply With Quote
 
Jeroen Ceuppens
Guest
Posts: n/a
 
      26th Nov 2003
When you are continuously drawing something like in

for (;
e.Graphics.DrawImage(bmp,100,100);

}

you need a thread, otherwise you can't acces other things of the program,
like minimize, max, put some text in a textbox,...........



Greetz

JC

"rocio" <(E-Mail Removed)> schreef in bericht
news:%23J4%(E-Mail Removed)...
> When developing fot he PocketPC, when do one need to worry about threads?

I
> have finished developing a windows app. for the Pocket PC, without using

any
> threads, and was wondering when& how to use them. Can anyone point to a

good
> intro. of threads for the .NET CF ?
>
> Thanks for all your comments & replies to my postings here. You all were
> very helpful.
>
>
>



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      26th Nov 2003
You shouldn't be drawing from threads other than the UI thread. The UI
thread *owns* the display windows of the application and using them from
other threads will cause you problems. Further, it's a poor design to be
drawing from 50 different places in the code.

Paul T.

"Jeroen Ceuppens" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When you are continuously drawing something like in
>
> for (;
> e.Graphics.DrawImage(bmp,100,100);
>
> }
>
> you need a thread, otherwise you can't acces other things of the program,
> like minimize, max, put some text in a textbox,...........
>
>
>
> Greetz
>
> JC
>
> "rocio" <(E-Mail Removed)> schreef in bericht
> news:%23J4%(E-Mail Removed)...
> > When developing fot he PocketPC, when do one need to worry about

threads?
> I
> > have finished developing a windows app. for the Pocket PC, without using

> any
> > threads, and was wondering when& how to use them. Can anyone point to a

> good
> > intro. of threads for the .NET CF ?
> >
> > Thanks for all your comments & replies to my postings here. You all were
> > very helpful.
> >
> >
> >

>
>



 
Reply With Quote
 
rocio
Guest
Posts: n/a
 
      26th Nov 2003
Thanks for your replies.
I do not think my app. will benefit or needs threads for the moment then.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread Local Storage and Managed Threads vs O/S Threads Chris Mullins [MVP] Microsoft Dot NET Framework 5 3rd Mar 2007 09:48 PM
Threads Calling Threads? Microsoft C# .NET 1 11th Dec 2006 08:17 PM
Forcing ThreadPool threads to act like they are not background threads orekin Microsoft C# .NET 13 2nd May 2005 07:15 AM
Discussion threads - sorting of internal discussion threads Bill Onwusah Microsoft Outlook 0 30th Jun 2004 03:47 PM
Question abouth multirunner. Renato Freeware 2 16th Apr 2004 09:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 PM.