上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 164 下一页

2021年3月26日

摘要: 前言 NFV(网络功能虚拟化)由运营商联盟提出,为了加速部署新的网络服务,运营商倾向于放弃笨重昂贵的专用网络设备,转而使用标准的IT虚拟化技术来拆分网络功能模块。在传统CT网络中对于服务质量保证的要求是非常高的,简而言之就是高带宽,高可靠,低时延。这些要求对于虚拟化技术而言本身就具有非常大的挑战。在 阅读全文
posted @ 2021-03-26 10:02 tycoon3 阅读(1231) 评论(0) 推荐(0)
摘要: Peer A Server-Reflexive + + Transport Address | | 192.0.2.150:32102 | | | /| | TURN | / ^| Peer A | Client’s Server | / || | Host Transport Transport 阅读全文
posted @ 2021-03-26 09:50 tycoon3 阅读(114) 评论(0) 推荐(0)

2021年3月25日

摘要: root@ubuntu:~/nginx-1.16.1# ps -elf | grep nginx 1 S root 2739 1 0 80 0 - 2265 sigsus 20:09 ? 00:00:00 nginx: master process ./objs/nginx -c conf/ngin 阅读全文
posted @ 2021-03-25 20:14 tycoon3 阅读(200) 评论(0) 推荐(0)

2021年3月17日

摘要: x86平台 CompareAndSwap实现如下所示 #define barrier() __asm__ __volatile__("": : :"memory") int CompareAndSwap(volatile int* ptr, int old_value, int new_value) 阅读全文
posted @ 2021-03-17 17:50 tycoon3 阅读(272) 评论(0) 推荐(0)
摘要: 单核 vs 多核 从多核的视角上来说,是存在着乱序的可能的。比如,假设存在变量x = 0,cpu0上执行写入W0(x, 1),对x写入1。接着在cpu1上,执行读取R1(x, 0),得到x = 0,这在x86和arm/power的cpu上都是可能出现的。原因是x86上cpu核和cache以及内存之间 阅读全文
posted @ 2021-03-17 17:42 tycoon3 阅读(1548) 评论(0) 推荐(0)
摘要: gcc 编译为汇编代码 原始C++代码如下: #include<atomic> using namespace std; atomic<int> a; int j; int main() { int n; a.store(1,memory_order_acquire); n = j; return 阅读全文
posted @ 2021-03-17 16:20 tycoon3 阅读(654) 评论(0) 推荐(0)

2021年3月16日

摘要: 读完了C++并发编程实战,记录一下对memory order的理解。 1. C++原子操作的内存顺序概述 memory order主要有以下几种: memory_order_relaxed只提供对单个atomic变量的原子读/写,不和前后语句有任何memory order的约束关系。 memory_ 阅读全文
posted @ 2021-03-16 18:09 tycoon3 阅读(951) 评论(0) 推荐(0)
摘要: CPU上下文切换是保证 Linux系统正常工作的一个核心功能,按照不同场景,可以分为进程上下文切换、线程上下文切换和中断上下文切换。究竟怎么分析CPU上下文切换的问题。 过多的上下文切换,会把CPU时间消耗在寄存器、内核栈以及虚拟内存等数据的保存和恢复上,缩短进程真正运行的时间,成了系统性能大幅下降 阅读全文
posted @ 2021-03-16 17:49 tycoon3 阅读(799) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/78388827 阅读全文
posted @ 2021-03-16 16:34 tycoon3 阅读(57) 评论(0) 推荐(0)
摘要: 在 16 位环境下,short 的长度为 2 个字节,int 也为 2 个字节,long 为 4 个字节。16 位环境多用于单片机和低级嵌入式系统,在PC和服务器上已经见不到了。对于 32 位的 Windows、Linux 和 Mac OS,short 的长度为 2 个字节,int 为 4 个字节, 阅读全文
posted @ 2021-03-16 15:34 tycoon3 阅读(847) 评论(0) 推荐(0)
上一页 1 ··· 43 44 45 46 47 48 49 50 51 ··· 164 下一页

导航