摘要: From: http://preshing.com/20120710/memory-barriers-are-like-source-control-operations/ If you use source control, you’re on your way towards understan 阅读全文
posted @ 2017-11-27 17:43 Andy.gbhu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://preshing.com/20120612/an-introduction-to-lock-free-programming/#sequential-consistency Lock-free programming is a challenge, not just becau 阅读全文
posted @ 2017-11-27 17:27 Andy.gbhu 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 转载自: http://preshing.com/20130922/acquire-and-release-fences/ Acquire and release fences, in my opinion, are rather misunderstood on the web right now 阅读全文
posted @ 2017-11-27 13:56 Andy.gbhu 阅读(726) 评论(0) 推荐(0) 编辑
摘要: git diff : compare working directory and staged file ( by git add) git diff --stage: compare staged file with file on the server git diff HEAD: compar 阅读全文
posted @ 2017-11-16 13:27 Andy.gbhu 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 版本问题 ubuntu 14.05 安装完YouCompleteMe后不生效,提示:YouCompleteMe unavailable : requires Vim 7.4.143经过检索与查询,ubuntu自带的vim为7.4.50,需要安装最新的vim。在stackoverflow上查到更新方案 阅读全文
posted @ 2017-10-19 22:41 Andy.gbhu 阅读(11327) 评论(0) 推荐(0) 编辑
摘要: 一、准备工作 安装Git(因为下面我们选择的插件管理器需要使用到它)安装其他插件前首先需要选择一个Vim插件管理器,我这里选择的是Vundle,Vundle的工作过程中需要通过Git自动从远程创库同步插件安装包到本地仓库(Vundle的默认本地仓库位置是~/.vim/bundle/) 通过Git下载 阅读全文
posted @ 2017-08-29 23:17 Andy.gbhu 阅读(8627) 评论(0) 推荐(0) 编辑
摘要: C stands for Ctrl and M stands for Alt REFERENCE FORM EMACS TUTORIAL 表述不一定正确,仅供参考,主要是要多实践,一开始可能会不习惯。 PART1 CURSOR C+p 光标上移 C+n 光标下移 C+b 光标后移 M+b 光标向前移 阅读全文
posted @ 2017-08-25 22:32 Andy.gbhu 阅读(316) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <unistd.h>#include <signal.h>#include <string.h>#include <arpa/inet.h>#include <netinet/in.h>#include <sys/types.h>#include 阅读全文
posted @ 2017-08-24 21:51 Andy.gbhu 阅读(330) 评论(0) 推荐(0) 编辑
摘要: #include<unistd.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include<pthread.h>#include <sched.h> #include<iostream> u 阅读全文
posted @ 2017-08-20 22:31 Andy.gbhu 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 头文件: #include <unistd.h> 原型:long sysconf(int sysnum); 示例: #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { printf("Size of a pa 阅读全文
posted @ 2017-06-13 19:44 Andy.gbhu 阅读(1103) 评论(0) 推荐(0) 编辑