How should you handle mmap issues?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
iansjack
Member
Member
Posts: 4689
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: How should you handle mmap issues?

Post by iansjack »

onlyonemac wrote:
  • Application will stop execution momentarily as the next section is read from disk, which could cause problems in a timing-critical section of code
  • Loading of application cannot be verified before execution begins as no checksum can be calculated (as data is read on an on-demand basis, so a corrupt application file cannot be detected)
  • User may remove disk while application is executing, leading to failure when next section is required
I'm not saying that you are wrong, but when you disagree with the designers of every major operating system you might want to take a little time out to consider why that is the case.
Boris
Member
Member
Posts: 145
Joined: Sat Nov 07, 2015 3:12 pm

Re: How should you handle mmap issues?

Post by Boris »

It's the application responsibility to know what it does with the resources it uses. It should check for errors that could have happened due to file/memory corruption .Be they hardware or software.

If your OS can't transmit an error it detected, what if the error was undetected ? like mmaping a badly downloaded file ?
Post Reply