Parallelizing a COM server

General OpenMP discussion

Parallelizing a COM server

Postby PeterP » Mon Dec 01, 2008 11:08 pm

If I use OpenMP to multi-thread the work done by methods in a COM Server, how does that interact with the COM threading environment?

If the COM Server is apartment threaded and runs in a STA (single-threaded apartment), that means that the method calls on the COM Server are serialized, but can a particular method create multiple threads to process its workload?

Or do I need the COM Server to have thread-safe methods and run in a MTA (multi-threaded apartment) to have a method multi-thread its workload?

I guess this is really a COM question rather than OpenMP, but any hints or references would be appreciated.

Peter P.

Re: Parallelizing a COM server

Postby ejd » Thu Dec 04, 2008 7:20 am

Unfortunately I have never tried this sort of thing and so I have no words of wisdom for you. Maybe someone else reading these posts might have some ideas. If you try doing this, I am sure that others would find any comments you have helpful and I would encourage you to post your comments here. Good luck!
Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Return to Using OpenMP

Who is online

Users browsing this forum: Google [Bot] and 8 guests