Loading...
Loading...
Browse 4 real-world technical and behavioral interview questions about Memory management. Review scenarios, edge cases, and architectural best practices.
A general-purpose allocator is adaptive, so its cost varies - cache hits, contention on a shared structure, page faults on new memory, occasional housekeeping - and the rare expensive path is your tail. An arena makes allocation a pointer bump, paid for with fixed capacity and manual lifetime discipline.
Test the candidate's ability to design custom memory management strategies, focusing on memory fragmentation, deterministic allocation times, and safety-critical constraints. Use this hardware answer to show the decision, trade-off, and evidence rather than a memorised definition.
A closure or delegate reference that captures its owner strongly, while the owner also holds that closure or delegate strongly, forms a cycle ARC cannot break on its own, and the fix is weak or unowned capture chosen by lifetime, not by habit. Use this IOS answer to show the decision, trade-off, and evidence rather than a memorised definition.
Stack and heap sizing on fixed RAM starts from the link map, worst-case call depth and interrupt nesting. Measure stack high-water marks with fill patterns, avoid unbounded heap allocation, and prefer fixed pools allocated at startup for predictable firmware behaviour.