2020年6月8日 下午3:08
注:长图
2020年6月8日 下午3:08
注:长图
2020年6月7日 下午12:25
网络字节序与主机字节序 - jacktu - 博客园
1 | 4000 4001 4002 4003 |
网络字节顺序是TCP/IP中规定好的一种数据表示格式,它与具体的CPU类型、操作系统等无关,从而可以保证数据在不同主机之间传输时能够被正确解释。网络字节顺序采用big endian排序方式。
在使用little endian的系统中 这些函数会把字节序进行转换
在使用big endian类型的系统中 这些函数会定义成空宏
2020年6月3日 上午9:22
static void* ThreadRoutine(void* arg);pthread_create(&threadId_, NULL, ThreadRoutine, this);explicit Thread(const ThreadFunc& func);typedef boost::function<void ()> ThreadFunc;ThreadFunc func_;1 | #include "Thread.h" |
1 | #ifndef _THREAD_H_ |
1 | #include "Thread.h" |
2020年6月3日 上午8:33
基于对象的方式,能够将新建线程相关的函数方法、全局变量封装在一个对象中,并且主线程main也可以通过这个类对象和新建线程交互
1 | #include <muduo/base/CountDownLatch.h> |
1 | #include <muduo/base/CountDownLatch.h> |
#b计算机基础/f_并发/java并发
2020年5月25日 上午10:26
有了互斥锁,为什么还要条件变量? - 简书
#b计算机基础/f_并发/java并发
2020年5月25日 上午10:26
有了互斥锁,为什么还要条件变量? - 简书
#b计算机基础/c_计算机系统/b_linux系统/补充
2020年5月24日 上午10:19
注:这篇内容抓住重点:执行的顺序、概念的定义的理解






renice -n nice_val -p [pid]nice -n nice_val [command]User space 与 Kernel space - 阮一峰的网络日志
用户态和内核态的区别 - Gizing - 博客园
unix - What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)? - Stack Overflow
User space vs kernel space · julia’s drawings
Understanding Linux CPU stats | Scout APM Blog
A brief guide to priority and nice values in the linux ecosystem
Process ‘niceness’ vs. ‘priority’ - Ask Ubuntu
CPU的实模式和保护模式(一) - 知乎
VOID001的个人空间 - 哔哩哔哩 ( ゜- ゜)つロ 乾杯~ Bilibili
教程 从零开始编写操作系统 第 0x01 课_哔哩哔哩 (゜-゜)つロ 干杯~-bilibili
保护模式特权级别DPL,RPL,CPL 之间的联系和区别 转 - 龙豆 - 博客园
x86 - what is the difference between IVT and IDT? - Stack Overflow
driver - What are Ring 0 and Ring 3 in the context of operating systems? - Stack Overflow
转帖为什么使用多级页表 - 济南小老虎 - 博客园
将操作系统分解,看看这个庞大的系统中包含哪些子系统
Memory Map (x86) - OSDev Wiki
what-is-the-difference-between-mbr-and-grub
2020年5月23日 下午12:09
Singleton* getInstance()private:Singleton(){};static Singleton* This;static const Singleton* getInstance()Singleton* Singleton::This = new Singleton;1 | int main() |
1 | #pragma once |
1 | #include "stdafx.h" |
2020年5月22日 下午9:27
2020年5月22日 下午4:19