Interview questions

Multi-threading with .NET


.NET Multi-threading

What is multi-threading? Why Multithreading?

Latest answer: Multithreading is the ability of an operating system to concurrently run programs that have been divided into threads................
Read answer

Advantages and disadvantages of using multithreading.

Latest answer: Advantages: Simultaneous access to multiple applications
Reduced number of required servers
Improved performance and concurrency...............
Read answer

How does multi-threading work in .NET?

Latest answer: There are two main ways of multi-threading which .NET encourages:

To start your own threads with ThreadStart delegates, you should create a new thread "manually" for long-running tasks................
Read answer

Benefits of using the Thread Pool.

Latest answer: Benefits of using the Thread Pool.

The benefits of using a Thread Pool are:...............
Read answer

Limitations of using the Thread Pool.

Latest answer: A thread pool executes on a single processor. But they are theoretically associated to server farms in which a master process distributes tasks to...............
Read answer

Explain how to create and manage threads using Thread class in the System.Threading namespace in .NET.

Latest answer:
using System.Threading;
private void ThreadTask()
{
         int x;
         int val;
         Random r=new Random();...............
Read answer

Explain the purpose of Mutex class in .NET.

Latest answer: System uses synchronization mechanism to make sure that a resource is used by only one thread at a time when more than one thread needs to access a shared resource at the same time................
Read answer

Describe the concepts of Monitor class, the interlocked class and the ReaderWriterLock class.

Latest answer: Access to objects by is controlled by the Monitor class. It grants a lock for an object to a single thread.
Critical sections can be access restricted by using object locks................
Read answer



Write your comment - Share Knowledge and Experience


More Related Links
NET Assembly

Define .Net Assembly.
What does an assembly contain?
Define a private assembly and a shared assembly.
What are Satellite Assemblies?
What do you understand by side-by-site execution of assembly?
How do you create a resource-only assembly?

What Is AJAX? History of AJAX, Advantages of AJAX

With AJAX, only the necessary data is transferred back and forth between the client and the web server. This minimizes the network utilization and processing on the client........

What Is ASP.NET 2.0 AJAX?

AJAX-style communications between client and server. This communication is over web services. Asynchronous communication. All client-to-server communication in the ASP.NET 2.0 AJAX framework is asynchronous................

Potential benefits of using Ajax

AJAX makes it possible to create better and more responsive websites and web applications...............

Potential problems with AJAX

Search engines may not be able to index all portions of your AJAX application site.........

What Is ASP.NET AJAX?

ASP.NET AJAX is the name of Microsoft’s AJAX solution, and it refers to a set of client and server technologies that focus on improving web development with Visual Studio...............

 
Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring