Multiple choice technology operating systems

19 How can I tell how much memory my system has?

  1. 1 Use getmemory()

  2. 2 Use sysctl()

  3. 3 Use freemem()

  4. 4 Use malloc()

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Unix-like systems, sysctl() is a system call used to examine and modify kernel parameters, including hardware information like total physical memory. getmemory and freemem are not standard POSIX system calls for this purpose.