Running Inventor Apprentice Server for Parallel operations

Running Inventor Apprentice Server for Parallel operations

ajaykarthikeyanv
Contributor Contributor
202 Views
1 Reply
Message 1 of 2

Running Inventor Apprentice Server for Parallel operations

ajaykarthikeyanv
Contributor
Contributor

Hi,
I'm trying to create an exe which runs Inventor Apprentice Server to gather Iproperties for specific set of files... Since I'm running it as a single threaded operation, my files are queued and takes much time to process all files.

Since Inventor Apprentice Server prefers single threaded working, is it possible for me to run Inventor Apprentice Server in different process in parallel batching the files for each instance of Apprentice server

Would like to know any other ways to speed up the process

Thanks

0 Likes
Accepted solutions (1)
203 Views
1 Reply
Reply (1)
Message 2 of 2

JelteDeJong
Mentor
Mentor
Accepted solution

I haven’t done this myself, but as far as I know, you can only create one instance of ApprenticeServerComponent per Windows process. If you want to parallelize your application for better performance, you'll need to create a main application that spawns multiple child processes (not just threads). Each child process can handle its own workload and send results back to the main app.
As far as I'm aware, using separate processes (rather than threads) is the only way around the single-instance limitation.
To implement this in .NET, take a look at Process.Start(...)

https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=netframework-4.8.... 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes