There are different types of threading models that are available, let us look into the Threading models that are common to win32 based environments.
SingleThreaded: It includes only one thread within the process, and it is responsible for performing all the work for the process. The process must be patient to wait for the completion of the current execution of the thread before it can start performing another action.
Apartment Threading (Single Threaded Apartment): Apartment threading includes multiple threads within the application. In a single-threaded apartment (STA), each thread is associated in a separate apartment under the process. The process can have various numbers of apartments that are capable of sharing the data through a proxy. The application will be defining when and for how long the thread in each apartment should perform the execution. All the requests will be serialized through the Windows message queue such that only a single apartment is allowed to be accessed at a time and thus only a single thread will be executed at any one time.
Free Threading (Multi-Threaded Apartment): Free threaded applications are specifically limited to the different programming languages such as C++ until the release of Microsoft .NET. The free threaded/Multi-Threaded Apartment (MTA) model has a single apartment created under a process rather than multiple apartments. This single apartment is responsible for holding multiple threads rather than just a single thread. There is no requirement of a message queue because all of the threads are a part of the same apartment and are allowed to share data without any proxy.
The developer must ensure that thread synchronization as part of the coding to make sure that the threads will not simultaneously access the same resources.
Posted Date:- 2021-09-21 05:06:51
What Is The Advantage Of Option Strict On?
What Is The Diff Between Vb Mdi Form And .net Mdi Form?
How Would You Implement Inheritance Using Vb.net ?
How To Check For A Particular Record Whether It Is Present Or Not In Dataset
How To Store And Retrieve Images In Sql Server Database Through Vb.net?
Differences Between Vb.net And C#, Related To Oops Concepts?
How Can I Extract The Formated Word(bold,italic,underline,font,color Etc) From The Msword File.?
Whats The Difference Bt. .dll Extension And .exe Extension Files?
What Is The Base Class Of .net?
Please List Some Final Year Projects That Can Be Done Using Vb.net In The Application Level.
What Is The Dif B/w Panel And Groupbox.
What Is The Difference B/w Readonly Variable And Constant Variable?
How To Call A List Box On The Text If Some One Send Me The Code For It
What Are Fixed Memory Leaks And Threads Locking Problems.
What Is The Common Language Runtime?
Is There Any Easy Way To Convert Vb6 Programs To Vb.net?
What Are The Similarities Between Class And Structure?
What Is The Difference Between Clr & Cts?
What Is The Difference Between Friend And Protected Friend?
How Do You Declare Static Variable And How It Is Declared And What Is Its Lifetime?
What Is The Difference Between Dataset And Datareader?
How Does You Get Record No From 5 To 15 From A Dataset Of 100 Records?
What is the difference between value and reference types?
What do you understand by the term Code Security?
What is the purpose of the Async keyword in VB.NET?
Describe what Authentication and Authorization means? What are the types of Authentication?
What are Option Strict and Option Explicit?
Briefly explain about the different types of threading models n Vb.net?
Illustrate the differences between a dataset and recordset?
Briefly explain about the terms meta data and JIT?
Explain the dialog boxes used in the Windows form of Vb.Net?
What are the main differences between functions and subroutines?
What is the object-oriented programming approach in the .net framework?
What are the shared variables in Vb.Net?
Explain the meaning of delegate in .NET?
What is garbage collection in the context of vb.net?
What are the types of Authentication?
What is Authentication and Authorization?
What is the difference between System.String and System.StringBuilder classes?