2017年4月23日

STL---vector的内存分配策略

摘要: 2级策略,过程如下: 第一级 __malloc_alloc_template内存分配器 该分配器是对malloc、realloc以及free的封装; 第二级 __default_alloc_template 是一个自维护的内存池,比如: s_free_list是这些空闲分区链的起始地址组成的数组,大 阅读全文

posted @ 2017-04-23 21:01 暴力的轮胎 阅读(719) 评论(0) 推荐(0) 编辑

TCP流量控制与拥塞解决

摘要: 滑动窗口 但要提高网络利用率: nagle算法 ~ 延迟 慢启动、拥塞避免 发送端主导cwnd init set ssthresh & cwnd = swnd loop : 网不阻塞 (cwnd < ssthresh)(cwnd > ssthresh)(cwnd == ssthresh) cwnd* 阅读全文

posted @ 2017-04-23 15:25 暴力的轮胎 阅读(303) 评论(0) 推荐(0) 编辑

导航