5

Androids process management needs an overhaul

I run video transcoder in termux and sometimes it bogs down the ui

Comments
  • 3
    You are running video processing in the main thread?

    You are lucky it doesn't simply ANR you...
  • 1
    Maybe you’re just out of CPU cycles on your mobile CPU
  • 0
    Buy 100% undetectable counterfeit money grade AAA+ | SSD CHEM | CLONED CARDS FOR SALE Telegram ID : @Loyaltyco
  • 1
  • 1
  • 1
    @AvatarOfKaine

    Yes, and termux runs on...?

    Android has kind of a heartbeat every 5 secs on the main (UI) thread.

    If the application fails to respond to it, it will be force killed with an Application Not Responding exception.

    If the UI lags while doing CPU intensive stuff, it can mean you are running said tasks on UI thread, and therefore risking an ANR, or that you lack horsepower to run whatever you are trying to run.
  • 0
    @CoreFusionX yeah but I'd think ternix would just wrap some other shell besides its spawning child processes right ?
  • 0
    @AvatarOfKaine

    It might... Or might not.

    On Android, unless root, you can't really spawn processes. Each running app is its own isolated process.

    You can emulate processes by implementing your own software scheduler of sorts.

    If that scheduler is using one thread per fake process, it should behave like the real scheduler, and the main thread shouldn't block.

    But if it is using some kind of task queue (pretty much like anything libuv does) that is running single threaded, and that thread happens to be the main thread, you are fucked.
  • 0
    @CoreFusionX hey if I asked you how many fingers I'm holding up what would you think.

    Also why is your avi brown again ?
Add Comment