VB.NET - What is STA in .NET? - April 29, 2009 at 18:00 PM
by Amit Satpute
What is STA in .NET?
STA stands for Single Thread Apartment
STA has window controls continue running in thread that will be started on
initalization.
It is not possible for any other thread to access the controls.
Cross thread communication is not supported and Delegates need to be used.
VB.NET - What is STA in .NET? - June 07, 2009 at 10:00 PM
by Shuchi Gauri
What is STA in .NET?
Single-threaded apartments or the apartment model process offers a message-based
paradigm for dealing with multiple objects running concurrently. It enables one
to write more efficient code by allowing an awaiting thread to wait for another
time-consuming operation to complete before it can be executed. Each thread in
a process that is initialized as an apartment model process which retrieves and
dispatches window messages, is a STA thread. Every thread lives within its own
apartment. Within an apartment interface pointers can be passed without
marshaling allowing all objects in a STA thread to communicate directly. It
forms a logical grouping of related objects that execute on the same thread and
therefore must have synchronous execution. That’s why the name apartment or
single-threaded apartments.
Also read
What is different between
Web.Config and Machine.Config?
NET
Access Modifiers
Net
Architecture
NET
Assemblies and Resources
NET
Base class library
|