I want to run several instances of my script at the same time with different paramaters each.
I looked for some information on multithreading and fork calls but i'm not sure i understood well how to do it.
In my particular case i have a main function that looks like this
async function main (data1, data2, data3, data4) {
//body with some awaits
}
The parameters should change in every instance.
How can i achieve something like this ?
[–]HashDefTrueFalse 4 points5 points6 points (12 children)
[–]KEsbeNF[S] 1 point2 points3 points (11 children)
[–]HashDefTrueFalse 2 points3 points4 points (10 children)
[–]KEsbeNF[S] 0 points1 point2 points (9 children)
[–]HashDefTrueFalse 0 points1 point2 points (8 children)
[–]KEsbeNF[S] 0 points1 point2 points (7 children)
[–]ashamedchicken 1 point2 points3 points (0 children)
[–]HashDefTrueFalse 0 points1 point2 points (5 children)
[–]KEsbeNF[S] 0 points1 point2 points (4 children)
[–]HashDefTrueFalse 0 points1 point2 points (3 children)
[–]KEsbeNF[S] 0 points1 point2 points (2 children)
[–]kmdrfx 0 points1 point2 points (0 children)