• MorphOS Developer
    jacadcaps
    Posts: 3020 from 2003/3/5
    From: Canada
    Quote:

    There ought to be some way to interrupt any webpage/JavaScript (tab)


    No, there isn't.

    A modern OS on modern hardware can run each browser tab as a separate, isolated process - there's a UI process, a network process and then each browser tab has a separate web process where the JavaScript runs. But those modern OS cannot "interrupt" JavaScript, either. Best they can do is to kill the offending (busylooping) process entirely and start a new one and re-load the page there.

    And if you're wondering why this isn't the case on MorphOS - run TaskManager on Windows and see how much RAM each web process of Chrome needs. That'd be even worse on MorphOS (add 50-60MB per process). Not to mention you have to have an RPC (inter-process communication) to make this all work which means serializing and deserializing everything passing between the UI / Network / Web processes. That's a additional CPU burden, simply offset by the fact that CPUs other than PPC have advanced quite considerably while the best MorphOS CPU is now >20 years old.

    You think Wayfarer takes a while to start? Imagine each new tab would take this long with the 1 tab per process approach.

    [ Edited by jacadcaps 20.05.2024 - 20:04 ]
  • »20.05.24 - 18:57
    Profile Visit Website