Threading’s C#

Threads run in parallel within a single process, to understand why tread is useful, you can imagine application where one thread can fetch data in the background,while another thread can display the data as it arrives. When Treads are useful: Multithreading is useful when one thread is waiting for response, another thread can take advantage of using CPU. …

Threading’s C# Read More »

Parallel execution of code C#

Introduction to Thread Multithreading is solution to parallel execution of code in C#. A thread is an independent execution path. Thread can run simultaneously with other threads. To use this Technic in C# you have to add namespaces call: using System; using System.Threading; lets look at simple example: class FirstThread { static void Main () { Thread thisThread = new Thread …

Parallel execution of code C# Read More »