OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 17, 2024 7:54 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How should you handle mmap issues?
PostPosted: Thu Feb 18, 2016 8:42 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: How should you handle mmap issues?
PostPosted: Tue Mar 22, 2016 1:47 am 
Offline
Member
Member

Joined: Sat Nov 07, 2015 3:12 pm
Posts: 145
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group