Tips on C Programming:

Basic Concepts

Memory Leak happens when programmers allocate memory in a heap and forget to release it. The act of allocation here could be a malloc() or other functions that implicitly allocate some memory blocks. The consequence is that available memory could be less and less and programs begin to perform worse or even make mistakes. (Fortunately, the OS keep track of all the memory allocated by a process and can free them as that process terminates, yet it’s still vital to free manually in programs.)

P1: Jumbo Shell (terminal)

P2: Measurement (function timing)

Test 2: Virtual/ Logical Memory

P3: Ants & Aardvarks (threading & synchronization)

Test3: Combination

P4: Jumbo Filesystem (synchronizing vars with real DISK fs)

Test4: Memory Management, FS

Test5: VM, FS, and Reliability