The real usage of a thread is not about a single sequential thread, but rather using multiple threads in a single program. Multiple threads running at the same time and performing various tasks is referred as Multithreading. A thread is considered to be a lightweight process because it runs within the context of a program and takes advantage of resources allocated for that program.
A single-threaded process contains only one thread while a multithreaded process contains more than one thread for execution.
System.Threading Namespace
Like many other features, in .NET, System.Threading is the namespace that provides various types to help in construction of multithreaded applications.
A single-threaded process contains only one thread while a multithreaded process contains more than one thread for execution.
System.Threading Namespace
Like many other features, in .NET, System.Threading is the namespace that provides various types to help in construction of multithreaded applications.
No comments:
Post a Comment