3 ms·
Would it be possible for the kernel to suspend the process in scenarios where malloc would fail instead of returning a failure? Either until enough becomes avai
by LgWoodenBadger 7y ago
Would it be possible for the kernel to suspend the process in scenarios where malloc would fail instead of returning a failure? Either until enough becomes available for it to succeed, or until something tells the kernel to renew/revive/resume the process and try the malloc again?
- rtkwe 7y agoIt could but if that process is using most of a systems memory that will lock up forever because while the process is frozen it won't release any of it's memory.