HTML and CSS Reference
In-Depth Information
Which method cancels a web worker?
A. close
B. terminate
C. suspend
D. sleep
2.
Where must you place the JavaScript code to run in the context of a web worker?
A. Between the <head></head> elements
B. In any <script> block in the page
C. In its own JavaScript file
3.
As a dynamic function assigned to the self.worker
D.
How many web workers/subworkers can run concurrently?
4.
A multiple of four web workers including subworkers, per processor
A.
16 workers by default, but you can change that number via self.configuration
B.
A limitless number of workers
C.
A limit of eight workers, each with a maximum of eight subworkers
D.
To have a script run continually every 30 seconds, which line of code should be used?
A. wsConnection.repeatWork(“workerFile.js”,30000);
B. setTimeout(function(){ worker.postMessage(“”);}, 30000);
C. setTimeout( worker.postMessage(“”), 30000);
D. setInterval(function(){ worker.postMessage(“”);}, 30000);
5.
Search WWH ::




Custom Search