问题出现:[root@bogon~]#yum-yinstallscreenLoadedplugins:fastestmirrorLoadingmirrorspeedsfromcachedhostfile*base:mirror.bit.edu.cn*extras:mirror.bit.edu.cn*updates:mirror.bit.edu.cnError:databasediskp_w_picpathismalformed解决办法:[root@bogon~]#yumcleandbcac..
分类:
数据库 时间:
2014-10-07 00:53:01
阅读次数:
251
linux下的同步和互斥
Linux sync_mutex
Semaphore.h
一份好文档,胜读十年书
本文参考了诸多资料,百度百科,cplusplus等
首先介绍一个头文件
#include
这里面包含了大多数的所需要使用的信号量.
包含:
int sem_init(sem_t *sem, int pshared, unsigned int value)...
分类:
系统相关 时间:
2014-10-03 23:39:55
阅读次数:
378
1. 获取最新版本
使用"Team sync perspective",如果想要看到全部工程的差异,选择全部工程,右键-Team-sync with Repository;将会自动跳到Team sync perspective;这里将会罗列和svn不同的内容:
加号:代表本地新添加,还没有同步到sv...
分类:
系统相关 时间:
2014-10-03 16:40:14
阅读次数:
228
一直以来,汽车行业的科技创新不胜枚举。早前福特引入SYNC车载多媒体通讯娱乐系统,使得车载声控成为现实;全新一代雪佛兰科鲁兹全面升级MyLink智能车载互联系统,具备语音识别能力;丰田汽车在新款车型中陆续增加语音对话型系统“Agent”。纵观汽车行业的未来发展,车企厂商越来越重视人机交互体验,动口不...
分类:
其他好文 时间:
2014-10-03 15:19:04
阅读次数:
363
最近在用户态下突然需要用到原子变量,又不想自己编译boost,思来索去,无意中竟发现gcc还有这一组内置函数. //先做操作,再返回变化后的值
type?__sync_fetch_and_add?(type?*ptr,?type?value);
typ...
分类:
其他好文 时间:
2014-10-03 15:11:55
阅读次数:
191
Problem Description
The light travels in a straight line and always goes in the minimal path between two points, are the basic laws of optics.
Now, our problem is that, if a branch of light goes...
分类:
其他好文 时间:
2014-10-03 04:12:15
阅读次数:
162
http://mirrors.163.com/http://mirrors.sohu.com/http://mirror.lzu.edu.cn/http://mirrors.tuna.tsinghua.edu.cn/http://mirrors.xmu.edu.cn/http://mirrors.u...
分类:
Web程序 时间:
2014-10-02 16:12:33
阅读次数:
222
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-10-02 09:45:52
阅读次数:
184
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:
其他好文 时间:
2014-10-02 05:53:22
阅读次数:
170
1.下载 wget http://apache.fayea.com/apache-mirror//httpd/httpd-2.2.29.tar.gztar zxvf httpd-2.2.29.tar.gzcd httpd-2.2.29./configure --prefix=/usr/local/h...
分类:
Web程序 时间:
2014-10-01 19:29:11
阅读次数:
272