java - Can an array be larger than physical memory? (e.g. can it be partially paged) -


let's have api provides array of strings example, , array might larger physical memory.

can jvm page part of array , bring disk traverse it? or array "atomic" data type can't partially paged? assume linked list answer easier since of nodes can paged transparently , retrieved on page fault, wonder if jvm (or if major oss @ all) allow paging part of large continuous array.

nope. jvm can't this.

but write implementation of list handle transparently, storing values disk or in database, , retrieving them necessary.

an operating system can page bits of memory disk you, want careful relying on work efficiently. whether work without grinding halt rather depends on you're doing. involves accessing random entries in quick succession not cope being paged out. hash table, instance, doesn't perform in context.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -