Amount of arrays

Just starting out? Need help? Post your questions and find answers here.
donSHAYA
User
User
Posts: 95
Joined: Wed Mar 25, 2009 9:57 am

Amount of arrays

Post by donSHAYA »

Hi all.

How can you find out how many arrays you can create? Like let's say in my PC I can create 100, but in my brothers I can create 150. Just examples.

And what decides the maximum amount of arrays? Is it the RAM or harddisk or something else?

Thank you
PyroStrex
User
User
Posts: 61
Joined: Mon Mar 22, 2010 3:08 pm

Re: Amount of arrays

Post by PyroStrex »

I think it depends on the RAM.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Amount of arrays

Post by Trond »

Obviously this depends on the number of elements in each array. To create an array there needs to enough free contigous virtual memory. Virtual memory is physical memory plus swap file.
Also, if your program is 32-bit it can't use more than 2gb ram total even if the computer has more virtual memory available.
Post Reply