Showing posts with label NameSpace. Show all posts
Showing posts with label NameSpace. Show all posts

Thursday, 22 December 2011

Threading in DotNet

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.

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 a Thread ?


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

Did VB support multi-threading ?


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

Can we have multiple threads in one App domain ?


One or more threads run in an AppDomain. An AppDomain is a

Thursday, 20 October 2011

What is Difference between NameSpace and Assembly?

Following are the differences between namespace and assembly :

  • Assembly is physical grouping of logical units. Namespace logically groups classes.

  • Namespace can span multiple assembly.

What is NameSpace?

Namespace has two basic functionality :-

  • NameSpace Logically group types, example System.Web.UI logically groups our UI related features.

  • In Object Oriented world many times its possible that programmers will use the same class name.By qualifying NameSpace with classname this collision can be avoided.