I createa server in Node.js and I want to run this function when it is called, and then do the task asynchronously in a seperate thread and browser and then return the result how can I do this ?
My pc becomes slower after a while (abt30min) of running scripts.
-
I run only 6 threads. At first itworks very smooth but then after about 30min its really slow.
Note its not particular action that is resource costful because script takes 5min to finish and then loop starts again.
maybe its because i am looping whole script? I shouldnt loop it?
-
I stopped looping it and it got faster. I use threads instead