I have a batch job which is running perfectly fine without multi threading.
I am trying to make this batch job support multi threading.
In order to do so the batch job form should ask user to enter no. of threads to be executed for the batch job.
Have gone through http://www.artofcreation.be/2010/10/03/batch-multithreading/comment-page-1/#comment-51120
But still cant figure out how to make this work in D365.
My understanding is that the contract class should be providing me with number of threads parameter, controller class should have construct method for my main class (which has the business logic).
Please let me know if my understanding is wrong/correct & please share some content showing how to convert existing batch job to a multi thread batch job.