THREADING

Which namespace has threading ?

Systems.Threading has all the classes related to implement threading. Any .NET application who wants to implement threading has to import this namespace.

Note :- .NET program always has at least two threads running one is the main program and second   is the garbage collector.

Can we have multiple threads in one App domain ?

One or more threads run in an AppDomain. An AppDomain is a runtime representation of a logical process within a physical process. Each AppDomain is started with a single thread, but can create additional threads from any of its threads.

Note :- All threading classes are defined in System.Threading namespace.

Did VB6 support multi-threading ?

While VB6 supports multiple single-threaded apartments, it does not support a free-threading model, which allows multiple threads to run against the same set of data.

What is a Thread ?

A thread is the basic unit to which the operating system allocates processor time.

What is Multi-threading ?

Multi-threading forms subset of Multi-tasking. Instead of having to switch between programs this feature switches between different parts of the same program. Example you are writing in word and at the same time word is doing a spell check in background.

What is Multi-tasking ?

It’s a feature of modern operating systems with which we can run multiple programs at same time example Word, Excel etc.