Using system resources efficiently
A phone screen question: "When you design an iOS app, what do you keep in mind to use system resources (CPU, memory, network, battery, disk) efficiently?" Give concrete criteria for each resource.
A phone screen question: "When you design an iOS app, what do you keep in mind to use system resources (CPU, memory, network, battery, disk) efficiently?" Give concrete criteria for each resource.
CPU: protect the main thread and use QoS. Memory: cache limits and pressure response. Network: batching, caching, conditional requests. Battery: minimize location, timers, and background work. Disk: coalesce writes and use file protection classes. Measure with the Xcode gauges, Instruments Energy Log, and MetricKit.
Performance and debuggingShort answerAdvanced
Map and navigation apps use a lot of battery. How would you design one to minimize…
#energy #battery
App lifecycle and systemShort answerBasics
How can an app find out that the user turned on Low Power Mode or that the device has…
#energy #battery
iOS system designMultiple choiceIntro
When the user enters the feed screen, which order of showing data is most appropriate?
#memory #network
iOS system designShort answerIntro
A travel booking app goes list → detail → booking. For each screen, how do you decide…
#battery #memory