web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

It possible to used multi threading in AX 2012 R2 ?

(0) ShareShare
ReportReport
Posted on by 30

Hello everyone, I'm newbie ax programmer , I want to improved my program by parallelism or multi-threading
I have a large of records and in each record will call a method to check data in each field and if correct will insert to table , It possible to split all records to N parts and send it to threads and run in parallel ?

Now, I try used thread class but it not work , when I ran program threads don't work and can't to debug it.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Panuwat Jungjitdamrong,

    In AX we have batch framework that is commonly used for multi-threading technet.microsoft.com/.../gg243235.aspx

    There is a good series of blogs from Dynamics Ax Performance Team explaining different approaches to multi-threading

    blogs.msdn.microsoft.com/.../batch-parallelism-in-ax-part-i

    In AX 2012 we also have SysOperations Framework that have async mode of execution and also supports Batch Parallelism, please read this white paper www.microsoft.com/.../details.aspx

    and here is a blog with example www.artofcreation.be/.../adding-runtime-tasks-to-a-business-operation-framework-service

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    AX has the Thread class if you literally mean spawning off your own threads to tackle a specific computational problem:

    msdn.microsoft.com/.../thread.aspx

    community.dynamics.com/.../105463

    Microsoft's standpoint on this is to go with the Batch framework instead for scalability and to utilize multiple AOS instances, however that could be slower due to the record and execution management of a batch, so decide it yourself for your situation to see which one is best to use here.

    blogs.msdn.microsoft.com/.../threading-in-dynamics-ax

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans