首页 > 试题广场 >

What are the benefits of mappi

[问答题]

What are the benefits of mapping objects into virtual memory,as Apollo Domain does? What are the drawbacks?

推荐

Mapping objects into virtual memory greatly eases the sharing of data between processes.Rather than opening a file,locking access to it,and reading and writing sections via the I/O system calls,memory-mapped objects are accessible as "normal" memory,with reads and writes to locations independent of disk pointers..Loc king is mud h easier also,since one shared memory location can be used as a locking variable for semaphore access.Unfortunately,memory mapping adds complexity to the operating system,especially in a distributed system.

发表于 2018-03-25 10:13:59 回复(0)