[whatwg] WebWorker questions

> What stops a web page hogging ALL cores (deliberately or not)
> and leaving no resources for the UI mouse or key actions required
> to close the page?

Any modern operating system enforces this, using standard thread /
process task scheduling.

> I know it's a "vendor issue" but should the spec at least recommend
> UAs leave the last CPU/core free for OS tasks?

That doesn't make much sense.  For one, it would forbid parallel
execution on single-core machines.  Also, it's not necessary, due to
OS task scheduling as described above.

Throttling other ways (e.g. "90% of system capacity") doesn't make
much sense either.  If this is the only task running on my machine, I
really do want it to execute at full speed.  Again, the OS task
scheduler was designed to handle exactly this case.

Received on Tuesday, 12 August 2008 11:44:33 UTC