In a 64-bit system, assuming that the actual memory is 3GB, what happens if the program requests 6GB memory and writes to the requested memory?

RT, in a 64-bit system, assuming that the actual memory is 3GB, what happens if the program requests 6GB memory and writes to the requested memory?


in the case of insufficient RAM, the system moves some of the content out to virtual memory (usually saved on disk).

the size and location of virtual memory vary from operating system to operating system. For example, windows uses a single paging file (file as virtual memory, while linux uses swap disk partitions as virtual memory.

when using more than the capacity of RAM + virtual memory, the program may report an error or exit, depending on the operating system.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bcb765-30a88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bcb765-30a88.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?