HTML5/JS - Start several webworkers
问题 I'm currently writing on a program, where I have to deal with huge arrays. I can however split those arrays. My plan now is, to process the arrays in different web workers. I have however never worked with them and do have several questions: 1. How would I run several web workers? I tried a for-loop looking like that: for(i = 0; i < eD.threads; i++){ //start workers here var worker = new Worker("js/worker/imageValues.js"); worker.postMessage(brightness, cD.pixels[i]); } Here I do get the