INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: threading model of MJAutomation?  (Read 1651 times)

salsbst1

  • Regular Member
  • World Citizen
  • ***
  • Posts: 244
threading model of MJAutomation?
« on: April 07, 2004, 07:49:42 am »

My client is multithreaded, so I need to know the threading model of the automation server.  Apartment?  Free?  Both?  
Logged

salsbst1

  • Regular Member
  • World Citizen
  • ***
  • Posts: 244
Re:threading model of MJAutomation?
« Reply #1 on: April 07, 2004, 12:36:51 pm »

After some testing with slow websites and the MJInternetAutomation object, it appears that MJ is queuing all calls into the Automation interface (i.e. that MC isn't going to do two things at once for me).  That said, I still need to access it from multiple threads, so my question about its thread model still stands.

?
Logged

salsbst1

  • Regular Member
  • World Citizen
  • ***
  • Posts: 244
Re:threading model of MJAutomation?
« Reply #2 on: June 01, 2004, 07:16:14 pm »

bump.... still having trouble here.
Logged

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re:threading model of MJAutomation?
« Reply #3 on: July 06, 2004, 12:53:50 pm »

I would also like to know the answer to this one.  Since I wasn't sure about it, I am queueing data between threads to ensure that only one thread ever calls into MC.  It would be nice to know if this is needed or not.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42323
  • Shoes gone again!
Re:threading model of MJAutomation?
« Reply #4 on: July 06, 2004, 01:33:26 pm »

MC uses apartment threading.

As long as each thread creates its instance of the automation object, it's safe to use them at the same time. (although MC will only do one thing at a time)

Creating an object in one thread an passing it to another thread may cause problems.
Logged
Matt Ashland, JRiver Media Center

Zoner

  • Regular Member
  • World Citizen
  • ***
  • Posts: 198
  • nothing more to say...
Re:threading model of MJAutomation?
« Reply #5 on: July 07, 2004, 03:37:59 am »

Thanks, Matt!
Logged
Pages: [1]   Go Up