This page will be regularly updated with weekly top 10 lists and my very own personal log. Stay tuned!
Why the need to represent numerical data alternatively?
Data is represented differently in computer science very commonly, why? Numbers in computers are actually interpreted as binary digits, hence it creates many alternatives to how we can simplify its interpretation instead of seeing a sea of 1’s and 0’s.
Hardware protection is divided into 3 categories:
Address binding is the process of mapping from one address space to another address space. Logical address is address generated by CPU during execution whereas Physical Address refers to location in memory unit(the one that is loaded into memory).
Swapping is a useful technique that enables a computer to execute programs and manipulate data files larger than main memory. The operating system copies as much data as possible into main memory, and leaves the rest on the disk. When the operating system needs data from the disk, it exchanges a portion of data (called a page or segment) in main memory with a portion of data on the disk.
Memory Allocation/Memory Management
Memory management is a form of resource managementapplied to computer memory. The essential requirement of memory management is to provide ways to dynamically allocate portions of memory to programs at their request, and free it for reuse when no longer needed. This is critical to any advanced computer system where more than a single process might be underway at any time.
Logical Address is generated by CPU while a program is running. The logical address is virtual address as it does not exist physically, therefore, it is also known as Virtual Address. This address is used as a reference to access the physical memory location by CPU. The term Logical Address Space is used for the set of all logical addresses generated by a program’s perspective.
This video helped me understand more about how pointers work in C as they were pretty confusing at first. When used correctly, C pointers can unleash the power of the C programming language.
Linux Libraries There are two Linux C/C++ library types which can be created:
A page table is the data structure used by a virtual memory system in a computer operating systemto store the mapping between virtual addressesand physical addresses. Virtual addresses are used by the program executed by the accessing process, while physical addresses are used by the hardware, or more specifically, by the RAM subsystem.
RAM (Random Access Memory) is the hardware in a computing device where the operating system (OS), application programs and data in current use are kept so they can be quickly reached by the device’s processor. RAM is the main memory in a computer, and it is much faster to read from and write to than other kinds of storage, such as a hard disk drive (HDD), solid-state drive (SSD) or optical drive.
Random Access Memory is volatile. That means data is retained in RAM as long as the computer is on, but it is lost when the computer is turned off. When the computer is rebooted, the OS and other files are reloaded into RAM, usually from an HDD or SSD.