会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jingyigang
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
下一页
2019年1月16日
获取clock ticks per second
摘要: #include #include #include int main() { printf("clock ticks per second = %ld\n", sysconf(_SC_CLK_TCK)); return 0; }
阅读全文
posted @ 2019-01-16 18:27 Kjing
阅读(503)
评论(0)
推荐(0)
2019年1月3日
resource links
摘要: http://cenalulu.github.io/linux/all-about-cpu-cache/
阅读全文
posted @ 2019-01-03 10:29 Kjing
阅读(127)
评论(0)
推荐(0)
2017年12月6日
查看线程信息
摘要: 编译: gdb attach上去 有3个线程 切到线程2(LWP 6006) 看下backtrace 从#2看出在child1处出现问题,查看代码 看出15行pthread_mutex_lock(&mutex_2),在等mutex_2,看下mutex_2的owner是谁
阅读全文
posted @ 2017-12-06 15:44 Kjing
阅读(2190)
评论(0)
推荐(0)
2017年11月3日
IPC
摘要: 摘自《Go并发编程实战》
阅读全文
posted @ 2017-11-03 17:58 Kjing
阅读(118)
评论(0)
推荐(0)
2017年11月2日
QMainWindow
摘要: QMainWindow继承自QWidget,是一个顶层窗口,它可以包含其他的界面元素:菜单栏、工具栏、状态栏、子窗口等。 QMainWindow不能设置布局(setLayout()方法),因为它有自己的布局: Reference : https://doc.qt.io/qt-5/qmainwindo
阅读全文
posted @ 2017-11-02 15:51 Kjing
阅读(1901)
评论(0)
推荐(0)
PyQt5目录
摘要: 记录下学习PyQt5的经过,方便以后查找。 Offical website : https://www.riverbankcomputing.com QMainWindow : http://www.cnblogs.com/jingyg/p/7772649.html
阅读全文
posted @ 2017-11-02 15:40 Kjing
阅读(580)
评论(0)
推荐(0)
2017年10月27日
Go的安装
摘要: 0. 环境:Ubuntu16.04 64位 1. 下载安装包,地址:https://golang.org/dl,以1.8版本为例,下载go1.8.linux-amd64.tar.gz 2. 解压到/usr/local(官方推荐) 3. 在 ~/.bashrc文件末尾添加环境变量: GOROOT的值是
阅读全文
posted @ 2017-10-27 17:37 Kjing
阅读(201)
评论(0)
推荐(0)
2017年10月24日
POJ 1731
摘要: #include #include #define N_MAX 201 int len; char buf[201]; void printf_arr() { for (int i = 0; i = end) return; int l = begin, r = end, k = a[l]; while (l != r) { while (l = a[l]) l++; if ...
阅读全文
posted @ 2017-10-24 13:51 Kjing
阅读(216)
评论(0)
推荐(0)
POJ 1256
摘要: //#include "stdafx.h" #include #include #define N_MAX 14 #define M_MAX 58 int T; int len; char buf[N_MAX]; int ret[N_MAX]; int aa[M_MAX]; //字符=>数字的映射 int bb[M_MAX]; //数字=>字符的映射 char *in = "AaBbCcDd...
阅读全文
posted @ 2017-10-24 13:50 Kjing
阅读(332)
评论(0)
推荐(0)
2017年10月13日
POJ:1833 按字典序找到下一个排列:
摘要: http://poj.org/problem?id=1833 按照字典的顺序(a-z) (1-9),可以得出任意两个数字串的大小。比如“123”, 最小的是“123”(从小到大),最大的是“321”(从大到小)。这样对于“123”的所有排列,可以得到按照字典序排序的有序集合 : 1 2 3 , 1
阅读全文
posted @ 2017-10-13 17:09 Kjing
阅读(362)
评论(0)
推荐(0)
1
2
3
4
5
下一页
公告