1. An electronic device comprising: a memory allocating unit configured to: identify a memory allocation request for an application, examine a history of memory allocation requests for the application, and determine a memory allocation mode for the application, based on the result of the examination; and a processor configured to perform a memory allocation operation according to the determined memory allocation mode.