Click here to Skip to main content
15,887,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone,
Actually i need to implement threads in Windows form,where one thread should implement animated slide show and another thread should do other work. As if it happens with visual studio installation,where user ll see the slide show and in background the required work will be carried..pls pls help me out its very urgent for me..
thank you
jaipal
Posted

You will find a good deal of advice in my answers to past CodeProject questions:

Control.Invoke() vs. Control.BeginInvoke()[^],
Problem with Treeview Scanner And MD5[^],
How to get a keydown event to operate on a different thread in vb.net[^],
Control events not firing after enable disable + multithreading[^].

See also my advice of thread wrapper:
How to pass ref parameter to the thread[^],
change paramters of thread (producer) after it started[^].

Use of event handle for thread synchronization:
ManualResetEvent and AutoResetEvent in Thread[^],
pause running thread[^].

This Tips/Tricks article explains thread communication and synchronization via the blocking queue: Simple Blocking Queue for Thread Communication and Inter-thread Invocation[^].

—SA
 
Share this answer
 
Comments
koolprasad2003 24-Jan-12 1:10am    
Useful links SA.+5.
Sergey Alexandrovich Kryukov 24-Jan-12 1:17am    
Thank you, Prasad.
--SA
thatraja 24-Jan-12 6:03am    
Big 5!
Sergey Alexandrovich Kryukov 24-Jan-12 9:49am    
Big thanks, Raja.
--SA
Multithread
For a long time, most programming applications were single-threaded. in now world most of the applications are single threaded, That means there was only one thread in the entire application. You could never do Process A until completing process B. A multithreaded application allows you to run process A and process B simulteniously, using threading you could finish your program in a quarter of the time.

Multithreading Concepts in C#[^]
Use of multithreading in c#[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jan-12 0:02am    
A suggestion: be careful with terminology. You "process" can cause confusion which is not like thread but some unit of execution providing isolation from different process and hosting one or more threads. I do understand you did not mean that, but it could cause confusion. Your statement about "most of the applications" and "a quarter of the time" is questionable. The problem of performance is really complex, it depends on how many cores and thread. Generally, you cannot accelerate anything with threads preempting each other on the same CPU or CPU core. Threads are more important not for performance but for logic of processing.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900