os211

  1. Linux Library
    A library is a collection of pre-compiled pieces of code called functions. The library contains common functions and together, they form a package called a library.

  2. malloc(), calloc(), free() and realloc() ??
    Since C is a structured language, it has some fixed rules for programming. One of it includes changing the size of an array. An array is collection of items stored at continuous memory locations.

  3. Uses of Hexadecimal
    Hexadecimal numbering system is often used by programmers to simplify the binary numbering system. Computers use binary numbering system while humans use hexadecimal numbering system to shorten binary and make it easier to understand.

  4. Partition Allocation Methods in Memory Management
    Most of the operating systems (for example Windows and Linux) use Segmentation with Paging. A process is divided into segments and individual segments have pages.

  5. Non-Contiguous Allocation in Operating System
    In non-contiguous allocation, Operating system needs to maintain the table which is called Page Table for each process which contains the base address of the each block which is acquired by the process in memory space. In non-contiguous memory allocation, different parts of a process is allocated different places in Main Memory.

  6. Virtual Memory Address Translation
    In a system with virtual memory the main memory can be viewed as a cache for the disk, which serves as the lower-level store. Due to the enormous difference between memory access times and disk access times, a fully-associative caching scheme is used.

  7. Dynamic Linking vs. Dynamic Loading
    Linking and loading are two instruments that play a pivotal role in program execution. Linking intends to generate an executable module of a program by combining the object codes generated by the assembler. A loader, on the other hand, loads these executable modules to the main memory for execution.

  8. Translation Lookaside Buffer (TLB) in Paging
    In Operating System, for each process page table will be created, which will contain Page Table Entry (PTE). This PTE will contain information like frame number (The address of main memory where we want to refer), and some other useful bits (e.g., valid/invalid bit, dirty bit, protection bit etc).

  9. Pointers in C Explained – They’re Not as Difficult as You Think
    Pointers are arguably the most difficult feature of C to understand. But, they are one of the features which make C an excellent language. This article will explains it from the very basics of pointers to their usage with arrays, functions, and structure.

  10. Pointers vs References in C++
    On the surface, both references and pointers are very similar, both are used to have one variable provide access to another. With both providing lots of the same capabilities, it’s often unclear what is different between these different mechanisms. This article will illustrate the differences between pointers and references.