开发者

Will running an Android service in a different process, contribute to the same heap limit?

[Note: This is a followup to the question about running an Android service in a separate process: How can an Android application have more than one process?]

I开发者_开发知识库f I specify a service to run in a separate process, will it have its own heap limit (or does it share the heap limit with that the main process)? In short, are heap limits per-process or per-app?


Each process has own virtual memory and address space. Thus, each process also has own heap it manages itself.

However, all processes share the same physical memory, managed by the OS. Thus having a separate process can help with memory issues sometimes, but not always.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜