1. A computer-implemented method to optimize an execution of a business process, comprising: receiving a request to execute a business process; upon receiving the request, determining, by a processor of the computer, an optimal number of threads for executing the business process by a thread optimization model; iteratively distributing, by the processor of the computer, one or more computations in the determined optimal number of threads by an inter-thread optimization model, comprising: determining a time required to generate a first thread from the optimal number of threads, and a total time required to execute one or more computations in the generated first thread; and partitioning the one or more computations in the generated first thread into one or more time slots, wherein the one or more time slots are at least equal to the time required to generate the first thread; and based on the determined optimal number of threads and the iterative distribution of the one or more computations, optimizing, by the processor of the computer, the execution of the business process.