随笔 - 192,  文章 - 0,  评论 - 2,  阅读 - 25万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
11 2017 档案
linux 命令使用方法(随时更新)
摘要:1、hexdump 命令简介:hexdump是Linux下的一个二进制文件查看工具,它可以将二进制文件转换为ASCII、八进制、十进制、十六进制格式进行查看。 命令语法:hexdump: [-bcCdovx] [-e fmt] [-f fmt_file] [-n length] [-s skip] 阅读全文
posted @ 2017-11-29 17:27 Malphite 阅读(492) 评论(0) 推荐(0) 编辑
json
该文被密码保护。
posted @ 2017-11-22 18:36 Malphite 编辑
json与cjson
摘要:json安装: http://blog.csdn.net/u011641885/article/details/46755225 tar xvf json-c-0.9.tar.gz cd json-c-0.9/ ./configure make sudo make install Ubuntu 的 阅读全文
posted @ 2017-11-22 18:27 Malphite 阅读(872) 评论(0) 推荐(0) 编辑
相关博客
摘要:c指针:http://www.cnblogs.com/lulipro/p/7460206.html libcurl教程 :http://blog.csdn.net/qq_16209077/article/details/51974260?locationNum=1&fps=1 阅读全文
posted @ 2017-11-14 23:30 Malphite 阅读(155) 评论(0) 推荐(0) 编辑
STL string
摘要:string string对象的定义和初始化 示例代码: #include <string> #include <iostream> using namespace std; void fun(char *str) { cout << str << endl; } int main(void) { 阅读全文
posted @ 2017-11-14 00:00 Malphite 阅读(93) 评论(0) 推荐(0) 编辑
读写锁
摘要:概述: 在一些程序中存在读者写者问题,也就是说,对某些资源的访问会 存在两种可能的情况,一种是访问必须是排它行的,就是独占的意思,这称作写操作; 另一种情况就是访问方式可以是共享的,就是说可以有多个线程同时去访问某个资源,这种就称作读操作。这个问题模型是从对文件的读写操作中引申出来的。 读写锁比起m 阅读全文
posted @ 2017-11-12 23:15 Malphite 阅读(295) 评论(0) 推荐(0) 编辑
perror strerror使用方法
摘要:1. 简介 很多系统函数在错误返回时将错误原因记录在libc定义的全局变量errno中,每种错误原因对应一个错误码。 errno在头文件errno.h中声明,是一个整型变量,所有错误码都是正整数。然后我们可以用perror或 strerror函数将errno解释成字符串 perror #includ 阅读全文
posted @ 2017-11-12 11:55 Malphite 阅读(1211) 评论(0) 推荐(0) 编辑
posix信号量与互斥锁
摘要:1、简介 POSIX信号量是一个sem_t 类型的变量,但POSIX 有两种信号量的实现机制:无名信号量和命名信号量。无名信号量可以用在共享内存的情况下, 比如实现进程中各个线程之间的互斥和同步。命名信号量通常用于不共享内存的情况下,比如不共享内存的进程之间。 1.1POSIX 无名信号量 在使用信 阅读全文
posted @ 2017-11-07 23:48 Malphite 阅读(483) 评论(0) 推荐(0) 编辑
线程基本操作(一)
摘要:一、简介 使用线程函数库,需要引入头文件<pthread.h> 链接这些线程函数库时要使用编译命令的“ -lpthread” 选项 二、函数介绍 1、创建一个新的线程 原型 int pthread_create(pthread_t *thread, const pthread_attr_t *att 阅读全文
posted @ 2017-11-05 23:36 Malphite 阅读(259) 评论(0) 推荐(0) 编辑
system v共享内存与信号量综合
摘要:ipc.h ipc.c shmfifo.h shmfifo.c shmfifo_send.c shmfifo_recv.c shmfifo_free.c Makefile 阅读全文
posted @ 2017-11-05 10:14 Malphite 阅读(428) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示