| A memory leak is the gradual loss of available computer memory when a program repeatedly fails to return memory that it has obtained for temporary use. Memory leaks are often caused by programming errors in computer code. For example, a programmer might dynamically allocate memory space for a variable of some type, but then forget to free up that space before the program completes. Should this happen, the system will have less free memory to use each time the program runs. Repeated running of the program or function that causes such memory loss can eventually crash the system. Memory leaks can be exploited by attackers to gain access to sensitive data or purposely create a denial-of-service (DoS) condition. A garbage collector (GC) can help minimize memory leaks by automatically detecting when data is no longer needed and freeing up storage accordingly. Continue reading... Take today's Pop Quiz! 1. A coding error in a computer program is called a ________. Answer 2. DoS attacks prevent legitimate users from accessing specific IT resources. What does DoS stand for? a. denial of service b. disk operating system Answer 3. What type of memory only maintains its data while the device is powered? Answer 4. Which memory management feature systematically recovers memory that is no longer being used? a. garbage collection b. FIFO stack Answer 5. Which type of memory is faster to read from -- and write to? a. RAM b. hard disk drive (HDD) c. solid-state drive (SSD) Answer |
No comments:
Post a Comment