Does memory handling issues affects the computer performance?

Asked By 10 points N/A Posted on -
qa-featured

While doing programming does improper memory handling affects the performance of computer? for example if you do not free the allocated memory while doing programming in c/c++.

If it really affects the hardware/ computer performance a big deal then what's the solution? because during practice i do not generally handles memory properly.

SHARE
Best Answer by Wanda Garcia
Best Answer
Best Answer
Answered By 0 points N/A #110703

Does memory handling issues affects the computer performance?

qa-featured

Hi there,

If you do not have proper memory management, you will get memory leaks. Memory leak causes your application not to work properly, or your application fails, or the whole system would slow down. Worst thing is, it can not be easily detected. Sometimes issues would come out months or years until such time you can no longer remember that it was your program that caused it. The consequences are so frustrating so you better be good in dealing with memory management. One simple approach you must understand well is how to allocate and free objects you used. A programmer should know when to free the object. Read some documents about C programming memory management to learn more. It cannot be discussed entirely here.

Answered By 0 points N/A #110705

Does memory handling issues affects the computer performance?

qa-featured

Dear Haris,

                    Memory league is a big problem in using computer resources. If you assign some memory for a program and do not delete it at end then it will cause your processor to become slow and it will not stop for working for the same process you assign it. More over your physical memory will also will be infected with this problem and it can cause extra memory use which will further cause to hang your PC and you need to restart your PC.

To use most of your computer resources you must declare the memory with proper way and after you done properly delete it and re assign it to system. It will not only cause good programming but will help you to safe most of your memory to which you can use for another program. Because our computer memories are limited and they can not be infinite.

I hope this will help you to under stand the basic knowledge of memory league.

John consult. (USA)

Related Questions