×

Method and system for coordinating access to objects of different thread types in a shared memory space

  • US 5,951,653 A
  • Filed: 01/29/1997
  • Issued: 09/14/1999
  • Est. Priority Date: 01/29/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method in a computer system for accessing objects of different thread types in a single process, the method comprising:

  • during execution of a single-threaded apartment (STA) thread,requesting access to a free-threaded object; and

    in response to the request to access a free threaded object,creating a multi-threaded apartment (MTA) thread;

    requesting the MTA thread to instantiate the free threaded object;

    receiving a marshalled pointer to the free-threaded object;

    unmarshalling the received pointer; and

    accessing the instantiated free-threaded object using the unmarshalled pointer wherein an MTA thread accesses the free-threaded object on behalf of the STA thread; and

    during execution of an MTA thread,requesting access to an apartment-threaded object; and

    in response to the request to access an apartment-threaded object,creating an STA thread;

    requesting the STA thread to instantiate the apartment-threaded object;

    receiving a marshalled pointer to the apartmnent-threaded object;

    unmarshalling the received pointer; and

    accessing the instantiated apartment-threaded object using the unmarshalled pointer wherein the STA thread accesses the apartment-threaded object on behalf of the MTA thread.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×