> From: [EMAIL PROTECTED] > Otherwise, this is a *bug*. Why don't systems request enough memory up > front to shut down gracefully? Because programming that is hard and > nobody cares.
Actually, many embedded programs do just that- they grab memory from the global pool at job start up, and release it at job finish. The job scheduler can tell if a job can be started by checking its memory requirements vs available resources. This method actually works pretty well- I worked on some programs that were several tens of thousands of lines of C, with no memory leaks. We used this method, with the granted memory broken into different pools for subjobs. We had the occasional buffer overrun bug, but no leaks that ever got checked in to source control. Gabe _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033 -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
