Tuesday, March 13, 2012

Thread Vs Timer ?

what is the difference between thread and timer.A thread is a parallel code execution line. If you have 10 threads in an application, this means 10 subprocess will run at the same time. The kind of subprocess depends on the code in the thread.
You can see a thread as a function/method that is executed in parallel instead of sequentially.

A timer is a countdown mechanisme. Most Timer systems use a thread that will do nothing until a given timespan elapses. Because it uses a thread, a timer does not interfere with normal program execution.
This guy again, still having others do your homework for you.

0 comments:

Post a Comment