Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
CoreFusionX374116dYou are running video processing in the main thread?
You are lucky it doesn't simply ANR you... -
Loyalty015dBuy 100% undetectable counterfeit money grade AAA+ | SSD CHEM | CLONED CARDS FOR SALE Telegram ID : @Loyaltyco
-
CoreFusionX374115d@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. -
@CoreFusionX yeah but I'd think ternix would just wrap some other shell besides its spawning child processes right ?
-
CoreFusionX374111d@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. -
@CoreFusionX hey if I asked you how many fingers I'm holding up what would you think.
Also why is your avi brown again ?
Androids process management needs an overhaul
I run video transcoder in termux and sometimes it bogs down the ui
random