Coder Social home page Coder Social logo

线程与进程 about blog HOT 4 OPEN

huoxiangdong avatar huoxiangdong commented on June 14, 2024
线程与进程

from blog.

Comments (4)

huoxiangdong avatar huoxiangdong commented on June 14, 2024

执行上下文 COE

  • 该状态包括CPU状态(寄存器等)、MMU状态(页面映射)、许可状态(UID、GID)和各种“通信状态”(打开文件、信号处理程序等)
  • COE的唯一性(Linux)称为“任务”

from blog.

huoxiangdong avatar huoxiangdong commented on June 14, 2024
  • 切换线程只是换一组寄存器,'切换内核态可是要复制整条堆栈的'

from blog.

huoxiangdong avatar huoxiangdong commented on June 14, 2024

调度

  • 调度器,能让多个任务(应用程序)微观上或宏观上同时执行。
  • 所谓微观上同时,指多CPU系统中,多个任务被分配给多个CPU,多个CPU同时进行取指译码执行等操作
  • 所谓宏观上同时,指多个任务被分配给单个CPU,单个CPU不能同时执行多个指令,但能在任务间快速轮换,使得看起来像同时执行

from blog.

huoxiangdong avatar huoxiangdong commented on June 14, 2024

内核级调度

  • 通过操作系统内核实现的调度,就是内核级调度

from blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.