Skip to main content

Posts

Showing posts from October, 2014

Multithreading C# : Part 02

Using a Background threads Foreground thread : You can use foreground threads to keep the application alive. When non of foreground threads are running, CLR (common language runtime) will shut down your application.  Background threads are then terminated.

Multithreading C# : Part 01

Multithreading with C# Think about old days, you have one central processing unit (CPU) in your pc which is capable of executing one operation at a time. If we have 5 operations to run then we have to wait till one operation is completed and then only other one can start. What will happen if the running operation has a bug and got stuck, then whole computer going to be freeze and useless unless we restart it. This is a huge problem. So if we can run multiple operation in the same time that would be great because it will solve this problem.