none
what is the difference between an apartment and a thread? RRS feed

Answers

  • Wikipedia has a pretty decent explanation on it Threading in COM
    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Saturday, February 21, 2009 11:19 PM
  • I dont think they can be related as identical entities to be compared.
    The threading model in COM can be explained using apartments.

    In COM world, there are 2 types of apartments - single threaded(STA) and multi-threaded apartments(MTA).

    Apartments are containers where objects are present.
    STA means that only a single thread can have access to that object.
    MTA means that one or more threads can have access to that object (also called free-threaded).

    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Sunday, February 22, 2009 1:33 PM
  • An apartment is a place where objects reside.  A thread stiches objects together.
    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Sunday, February 22, 2009 3:07 PM

All replies

  • Wikipedia has a pretty decent explanation on it Threading in COM
    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Saturday, February 21, 2009 11:19 PM
  • I dont think they can be related as identical entities to be compared.
    The threading model in COM can be explained using apartments.

    In COM world, there are 2 types of apartments - single threaded(STA) and multi-threaded apartments(MTA).

    Apartments are containers where objects are present.
    STA means that only a single thread can have access to that object.
    MTA means that one or more threads can have access to that object (also called free-threaded).

    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Sunday, February 22, 2009 1:33 PM
  • An apartment is a place where objects reside.  A thread stiches objects together.
    • Marked as answer by Zhi-Xin Ye Thursday, February 26, 2009 11:47 AM
    Sunday, February 22, 2009 3:07 PM