Wednesday, April 1, 2015

Threading in C#



What is the Process?
Process is an instance of a computer program that is being executed. It contains the program code and its current activity. Depending on the operating system, a process may be made up of multiple threads of execution that execute instructions concurrently.

A Process has at least one thread which is commonly called main Thread.

Threading :  threading in C# is Parallel code execution. 

Let’s see in example below


By default we have 2 types of Threads :

Background Thread:  This will quit if your main application quit

Foreground Thread:  which is keeping running even if your main application quit.



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.