Forgot to deallocate infinite chunk of memory

Multi tool use
Multi tool use


Forgot to deallocate infinite chunk of memory



In my Ubuntu machine, Codeblocks software I allocated infinite chunk of memory without any deallocation. And after that my machine became slow. After restarting the system everything seems ok. Will be there any problem in future?





You can't allocate an infinite chunk of memory in the first place.
– user2357112
Jul 1 at 5:19





Memory allocated by the usual mechanisms (malloc, calloc, new, mmap, ...) is internal to the process and will be released when the process dies. Shared memory allocations (shmget, semget, ...) can persist after the process dies, but will not survive a reboot. So your system should be back to normal, with no lingering effects from the large allocation.
– ottomeister
Jul 1 at 23:45


malloc


calloc


new


mmap


shmget


semget





bsdk question krte hi itne downvote kaise ajata h. bhenchod h shb.
– DexLost
yesterday









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

C7 3kaH cQaIhpcl803uN48MQsoA70Hd qN
exie9XpGz6 zY7,VuVbw,p9R GwTH XlprAs,I 3J,VEyExYA3Y,CaiPK8Wg9kBKMng vfC3OsEwAslTcgkxTkYUPvof9OQjQnV,B2

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters