Memory Swapping and Virtual Memory on iOS [closed]

断了今生、忘了曾经 提交于 2020-01-03 09:46:31

问题


Does iOS support memory swapping and virtual memory that automatically runs like Linux?


回答1:


iOS has virtual memory, but no backing store, so there is no paging in/out from swap memory.

Apple's About the Virtual Memory System documentation should give you a general idea about how iOS provides virtual memory, however it hasn't been updated since 2013 and doesn't cover newer 64-bit details.




回答2:


As Petah wrote it does have a virtual memory but it doesn't swap automatically on a backing store, you can map file tough.
There are some WWDC videos that face that subject:

  • iOS App performance Memory
  • Optimizing your app performance for multitasking in iPAD

And probably the talk again in one WWDC 2011 video. I don't know why you are asking that, but if it is about about memory occupation concern, there are a lot of techniques to keep it low, file map, respond correctly to memory warnings, purgeable memory, NSCache. I strongly suggest you to watch the second video.



来源:https://stackoverflow.com/questions/34261845/memory-swapping-and-virtual-memory-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!