in Education by
Can you explain STA and MTA in your own words? Also, what are apartment threads and do they pertain only to COM? If so, why? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The COM threading model is called an "apartment" model, where the execution context of initialized COM objects is associated with either a single thread (Single Thread Apartment) or many threads (Multi Thread Apartment). In this model, a COM object, once initialized in an apartment, is part of that apartment for the duration of its runtime. The STA model is used for COM objects that are not thread safe. That means they do not handle their own synchronization. A common use of this is a UI component. So if another thread needs to interact with the object (such as pushing a button in a form) then the message is marshalled onto the STA thread. The windows forms message pumping system is an example of this. If the COM object can handle its own synchronization then the MTA model can be used where multiple threads are allowed to interact with the object without marshalled calls.

Related questions

0 votes
    Can you explain STA and MTA in your own words? Also, what are apartment threads and do they pertain ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 15, 2022 in Education by JackTerrance
0 votes
    What all do you usually do while you are connected to the net? Make a list of all the security measures ... to safeguard yourself. Select the correct answer from above options...
asked Dec 30, 2021 in Education by JackTerrance
0 votes
    Do you know how you could add support for Web Service transactions?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    How could you improve the efficiency of our marketing team?...
asked Mar 11, 2021 in Technology by JackTerrance
0 votes
    R suffers from the disadvantage of being restricted to the local memory. Could you elaborate the precise memory limit in R?...
asked Oct 16, 2020 in Technology by JackTerrance
0 votes
    In a network, If P is the only packet being transmitted and there was no earlier transmission, which of the ... B. Queuing delay C. Transmission delay D. Processing delay...
asked Jan 9, 2023 in Technology by JackTerrance
0 votes
    How could India and African nations benefits from each other? Please answer the above question....
asked Aug 4, 2022 in Education by JackTerrance
0 votes
    I'm trying to embed python into a C application. For the moment, I am trying to get the following ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    I am beginner of JAVA and JSP. I am doing semester project on appengine. I have deployed project and ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jan 14, 2022 in Education by JackTerrance
0 votes
    Compression of images could be easily achieved using which gulp plug-in? A. gulp-minjpg B. gulp-minipng C. gulp-minjpeg D. gulp-imagemin E. gulp-minijpeg...
asked Feb 3, 2023 in Technology by JackTerrance
0 votes
    https://twitter.com/i/status/1609422811164205057...
asked Jan 3, 2023 in General by JackTerrance
0 votes
    Which platform could gain its best use case from financial service industry? A. Hyperledger B. R3 Corda C. Ethereum D. All the options...
asked Nov 30, 2022 in Education by JackTerrance
0 votes
    Who developed the first learning machine in which connection strengths could be adapted automatically? (a) McCulloch- ... none of the mentioned Please answer the above question....
asked Sep 21, 2022 in Education by JackTerrance
0 votes
    Which of the following statement is incorrect regarding with first general elections in India? 1) Only 10% of ... were introduced Select the correct answer from above options...
asked Aug 3, 2022 in Education by JackTerrance
0 votes
    Symfony version: 3.1.3 Due to development reason suddenly my app giving the following error and I believe ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 8, 2022 in Education by JackTerrance
...