zoukankan      html  css  js  c++  java
  • Linux Notes

    Do what we want based on what others already did with additional abstraction and organization to service for uses.

    1. Preface
      • Provide valuable insight to pepole who want to know more about the critical design issues in a modern operating system.
      • Understand how things really work inside the machine, often called microprocessor or MPU or SoC.
      • Two ways of designing OS: design OS based on specific hardware platform, or skip the hardware-dependent details and concentrate on the pure hardware-independent parts of the kernel.
      • Efficient kernels take advantage of most available hardware features, such as addressing techniques, caches, processor exceptions, special instructions, control registers, I/O registers, memory management unit(MMU), and so on.
      • When covering hardware features, out strategy is only sketch the features that are totally hardware-driven while detailing those that need some software support.
      • shall be interested in kernel design rather than in computer architecture.
      • Learning kernel shall use the bottom-up approach, hardware-->I/0 registers-->control registers-->OS-->system call-->User app
      • Start with data structures needed to support he functions described in the chapter, Then move from the lowest level of functions to higher levels, often ending by showing how system calls issued by user applications are supported
      • Memory management, including mmp, file buffering, process swapping, and Direct memory Access
      • The virtual Filesystem layer and the Second and Third Extended Filesystems.
      • Process creation and scheduling
      • Signals, interrupts, and the essential interfaces to device drivers
      • Timing
      • Sychronization within the kernel
      • Interprocess Communication
      • Program Execution
    2. Introduction
      • Linux was initially developed by Linus Torvalds in 1991 as an OS for IBM-compatible personal computers based on the Intel 80386 microprocessor.
      • The current standards specify only an application programming interface API that is, a well-defined environment in which user programs should run.
      • Windows NT and its descendents are POSIX-compliant.
      • Unix-like kernels often share fundamental design ideas and features.
      • Adopt the best features and desgin choices of several different Unix kernels.
      • Monolithic kernel: large, complex, conventional
      • Compiled and Statically linked traditional kernels:load and unload dynamically some portions of the kernel code, device drivers which are usually called modules.
      • Kernel threading: organized as a set of kernel threads.A kernel thread is an execution context that can be independently scheduled;it may be associated with a user program, or it may run only some kernel functions. Context switches between kernel threads are usually much less expensive than context switches between ordinary processes, because the former usually operate on a common address space.
    3. adf
    4. zcv
    5. zcv
    1. dfadf

    adf

  • 相关阅读:
    各种颜色的英文代码
    颜色代码简集
    [转]怎么成为优秀的软件模型设计者
    控件禁用
    jQuery图片播放插件ColorBox使用方法
    5个好玩的在线HTML5游戏【部分附源码下载】
    各大网站架构总结笔记(续)
    Web开发基础务实之《ASP.NET战役完胜表彰晚会(一)》
    iview Form自动跳转到校验不通过的地方
    C++与Java比较
  • 原文地址:https://www.cnblogs.com/iiiDragon/p/LinuxKernel.html
Copyright © 2011-2022 走看看