brianez21
Contributor
Contributor

Multi-Threading in Java API

Does the vSphere management SDK support multi threading. I try to realize a pool of service instance objects to be reused, because my application needs many of them and I do not want to recreate them all the time.

Now I wonder, whether objects of ServiceInstance are multi-thread safe or whether I have to make sure, that each ServiceInstance is accessed by only one thread at a time?

0 Kudos
1 Reply
CSiegle
Contributor
Contributor

I can't say for certain in Java, but I am able to create multiple threads in C#.  For example, I am creating a thread for each vCenter to collect data all at once.
0 Kudos