GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  VB.NET
Go To First  |  Previous Question  |  Next Question 
 VB.NET  |  Question 25 of 60    Print  
what is STA in .NET?

  
Total Answers and Comments: 4 Last Update: February 28, 2007     Asked by: girija 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: raghavendran
 
STA -Single Thread Apartment which means the windows contolls will be ruuning in thread that will be started on initalization.When another thread tries to access the contols then it is not possible. Cross theread communication is not supported. Delegates has to be used.

Above answer was rated as good by the following members:
cherry2020
October 18, 2006 08:12:50   #1  
Pallavi        

RE: what is STA in .NET?
STA is Store Accumulator
 
Is this answer useful? Yes | No
October 23, 2006 01:04:54   #2  
girija        

RE: what is STA in .NET?
please explain it .
 
Is this answer useful? Yes | No
October 23, 2006 13:02:33   #3  
satnam singh        

RE: what is STA in .NET?
single-threaded apartments (the apartment model process) offers a message-based paradigm for dealing with multiple objects running concurrently. It enables you to write more efficient code by allowing a thread while it waits for some time-consuming operation to complete to allow another thread to be executed.Each thread in a process that is initialized as an apartment model process and that retrieves and dispatches window messages is a single-threaded apartment thread. Each thread lives within its own apartment. Within an apartment interface pointers can be passed without marshaling and therefore all objects in one single-threaded apartment thread communicate directly. A logical grouping of related objects that all execute on the same thread and therefore must have synchronous execution could live on the same single-threaded apartment thread. However an apartment model object cannot reside on more than one thread. Calls to objects in other processes must be made within the context of the owning process so distributed COM switches threads for you automatically when you call on a proxy.
 
Is this answer useful? Yes | No
February 28, 2007 06:08:41   #4  
raghavendran        

RE: what is STA in .NET?
STA -Single Thread Apartment which means the windows contolls will be ruuning in thread that will be started on initalization.When another thread tries to access the contols then it is not possible. Cross theread communication is not supported. Delegates has to be used.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape