3 ms·
Any C++ programmer could write code that “allocates” 500MB in a few instructions if the pages already exist. If the pages don’t already exist (as indicated by
by paulsutter 7y ago
Any C++ programmer could write code that “allocates” 500MB in a few instructions if the pages already exist.
If the pages don’t already exist (as indicated by the given timings), this is a test of the OS and has little to do with the language.
It’s a poorly posed question. C++ runs on many environments.