Can I do multi threading in PI ACE?
If yes then I have two methods need to executes parallel both the threads?
I'd have to test to be certain, but if you are using VB.NET I don't see why there would be a problem. The PI ACE Scheduler simply runs compiled code on a schedule. I don't think VB6 supports multi-threading directly.
Are you looking at deploying a new PI ACE application or is a current one running into performance issues you believe multi-threading would help resolve?
If you are using ACE 2.x then yes you can, as .NET supports this in a variety of ways. As Sebastien Raposo noted, the PI ACE Scheduler simply runs your code on a defined schedule, but whether that code is single or multi-threaded is entirely up to you.
I am using C#.Net. C#.Net have multi-thread support.
My question was, I have two method can I run this method in difference thread?
If yes, then how?
PI ACE doesn't officially support coding in C#. I know of a few customers that have it working well, but beware that if you run into issues, our support team may not be in a position to assist you.
Your question is specific to multi-threading in C#, it's not related to PI ACE or any OSIsoft technology. I'd recommend searching Microsoft forums for the answer (example: Stack Overflow) or Microsoft documentation.
A good starting point is to look at the Thread and Task classes here:
Task Class (System.Threading.Tasks) | Microsoft Docs
Thread Class (System.Threading) | Microsoft Docs
Depending on what your methods do and how you want to control execution (exception handling, task cancellation, etc...) you can choose between a task and a thread.
Out of curiosity, why can't you use Asset Analytics?
If you are using the PI SDK, beware that it is COM based and objects are created in Single Threaded Apartments. If you use PI SDK objects, you will have to marshal the objects.
Retrieving data ...