Code Monkey home page Code Monkey logo

blog's People

Contributors

hnrainll avatar imageslr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

blog's Issues

📔【操作系统】进程的调度、僵尸进程/孤儿进程/守护进程

https://imageslr.github.io/2020/07/07/process-schedule.html

进程的状态 基本状态 进程的基本状态:“就绪”、“执行”、“阻塞”。 就绪:进程已获得除处理机以外的所需资源,等待分配处理机资源 执行:进程正在占用处理机资源执行 阻塞:进程等待某种条件,在条件满足之前无法执行。如发起了 I/O 系统调用,会被阻塞,等待 I/O 中断发生

📗【Go 原理】结构体方法:值接收者与指针接收者的区别

https://imageslr.github.io/2019/11/12/go-underlying-struct-method.html

方法的接收者类型可以是:值、指针,结构体变量的类型可以是:值、指针。这样能够组合出四种不同情况,只有一种会发生编译不通过的问题,即结构体类型为值类型、调用接收者为指针的方法。但是反过来,结构体为指针类型时,却可以调用接收值为值或指针的任何方法。这是为什么呢?

📔【操作系统】I/O 多路复用,select / poll / epoll 详解

https://imageslr.github.io/2020/02/27/select-poll-epoll.html

简介 阻塞 I/O 与非阻塞 I/O: 阻塞 I/O,即进程发起调用后,会被挂起(阻塞),直到收到数据再返回。缺点:如果调用一直不返回,进程就会一直被挂起 非阻塞 I/O 不会将进程挂起,调用时会立即返回成功或错误,优点是如果调用一直不成功,进程可以主动放弃这次调用,执行别的操作。缺点是非阻塞 I/O 需要不断轮询返回值,直到返回成功,这样效率很低

📔【操作系统】用户态与内核态

https://imageslr.github.io/2020/07/07/user-mode-kernel-mode.html

为何要区分用户态和内核态 最简单的运行程序的方式是“直接执行”,即直接在 CPU 上执行任意程序。直接执行的问题是: 如何限制代码行为?比如禁止:设置特殊寄存器的值、访问存储器的任意位置、I/O 请求、申请更多系统资源等 在运行这个程序的时候,如何切换到另一个程序?进程调度应该是 OS 才有的权限

📔【计算机网络】计算机网络基础与协议栈

https://imageslr.github.io/2020/07/07/protocol-stack.html

OSI 参考模型 OSI 从上到下分为 7 层: 应用层:应用层协议定义的是应用进程间的通信和交互的规则,不同的网络应用需要不同的应用层协议 表示层:把数据转换为能与接收者的系统格式兼容并适合传输的格式 会话层:在数据传输中设置和维护电脑网络中两台电脑之间的通信连接 传输层:向两台主机进程之间的通信提供通用的数据传输服务 网络层:基于网络层地址(IP地址)进行不同网络系统间的路径选择 数据链路层:在不可靠的物理介质上提供可靠的传输 物理层:在局域网上透明地传送比特,尽可能屏蔽掉具体传输介质和物理设备的差异

📔【操作系统】写时复制 Copy-on-write

https://imageslr.github.io/2020/copy-on-write.html

Copy-on-write 简介 写时复制(Copy-on-write,COW),有时也称为隐式共享(implicit sharing)COW 将复制操作推迟到第一次写入时进行:在创建一个新副本时,不会立即复制资源,而是共享原始副本的资源;当修改时再执行复制操作。通过这种方式共享资源,可以显著减少创建副本时的开销,同时,资源修改操作会增加少量开销。

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.