Is the address returned by malloc a virtual address, or is it the actual physical address to which the memory is allocated?
Edit:
I read somewhere, "In some implementations, calling free () frees memory back to the system, and in others to the process." “Return to system” means that memory is actual physical memory, and “exemption from the process” means that it is virtual memory?
This is the address valid in the current process. Regardless of whether the virtual address or physical address depends on the underlying platform.
C , . , .
. , , .
, , - , . C , , , .. , , .
(1, 2, 3,...), , , . , , .
, , , - - ... - -, malloc(). , , - UNIX /dev/mem - , , , .
malloc()
/dev/mem
Source: https://habr.com/ru/post/1770044/More articles:Is there a way in vi / vim to make Visual Block Mode without pipeline restrictions? - vimGNU Prolog - recursion problem (easy?) - recursionWhen is Scala going to trash? - garbage-collectionWhy is there always a 10px add-on in System.Windows.Controls.Button? - paddingjava xml validation: getting a better description of validation error - javaDelete expression - c ++Google spreadsheet as db for web applications - google-spreadsheetproblem to set application name in android? - androidSQL Server: proc can be stored from which tables are updated from the UDF CLR - sql-serverHow to initialize a class with many constructor arguments? - oopAll Articles