is there any way to create new process and make it execute some code while main process execute some code too. in my code,i used something like this:
<script>
function f1(){//some code
}
setTimeout(f1,delay);
</script>
my question is: the main process execute f1 function or a new one?,and if it is the main how can i execute f1 function with a new process.
i had tried setTimeout function and i see that the main process execute the function after a delay time.
any help please.