Multithreading is a important feature of .NET, which was not there in Visual Basic.
If u want to use Multithreading, import a namespace called as System.Threading.In this namespace there are many classes related to it like Mutex,....
IL:
IL is a intermediate language, which is created when you compile the .net program. This is also a object oriented language. This makes cross language inheritance.
c#:
C# is a new OOPs language which is developed by Microsoft. This language gives flexibility, mordern, easy to use.
c# is one of the programming language defined as "Type safe version of c with oops" developed by Microsoft corporation.
IL(Intermediate Language) is a code which can be converted by .net to support the cross language support.
(That is whatever the language like c#, vb, c++,j# is used to program in .net that code is converted into IL which is common for all .net platform supporting languages before the execution, it supports the cross language support in .net platform)
Satellite assemblies are often used to deploy language-specific resources for an application. These language-specific assemblies work in side-by-side execution because the application has a separate product ID for each language and installs satellite assemblies in a language-specific subdirectory for each language. When uninstalling, the application removes only the satellite assemblies associated with a given language and .NET Framework version. No core .NET Framework files are removed unless the last language for that .NET Framework version is being removed
Goto command prompt Ist you have to set the path and type csc /t:library filename then you will be created assembly which will stored in the application directory.
for ex. i have file with hello.cs
i used to csc /t:library hello.cs
then it became hello.dll. stored in the application directory.
NET allows to call System.Windows.Forms.Control functions only from thread where control was created. To run them from other thread we need to use Control.Invoke (synchronous call) or Control.BeginInvoke (asynchronous call) functions. For task like showing database records we need Invoke. To implement this :Delegate type for calling form function, delegate instance and function called using this delegate Invoke call from worker thread. Next problem is to stop worker thread correctly. Steps to do this:Set event "Stop Thread" Wait for event "Thread is stopped" While waiting for event process messages using Application.DoEvents function. This prevents deadlock because worker thread makes Invoke calls which are processed in main thread. Thread function checks in every iteration whether Stop Thread event is set. If event is set, function makes clean-up operations, sets event "Thread is stopped" and returns.
Webmaster 22nd of May 2012
Tell us what you feel about Microsoft.NET Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on Microsoft.NET Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding Microsoft.NET Interview Questions and Answers
Thank you.