- 博客(14)
- 资源 (48)
- 收藏
- 关注
原创 About IPC
<br />各篇IPC博文的word版以及测试代码汇总下载,见:<br />http://download.csdn.net/source/2937929<br />目前为v0.1.
2010-12-25 20:48:00 641
About IPC
各篇IPC博文的word版以及测试代码汇总下载,见: http://download.csdn.net/source/2937929 目前为v0.1.
2010-12-25 20:48:00 59
原创 IPC Posix Semaphore
Posix信号灯1、 函数列表(#include )有名信号灯特异函数Ø sem_t *sem_open(const char *name, int oflag);sem_t *sem_open(const char *name, int oflag,mode_t mode, unsigned int value);此函数创建一个新的信号灯或打开一个已存在的有名信号灯,成功时返回指向信号灯的指针,出错时返回SEM_FAILED。Oflag可以为0、O_CREATE、O_CREATE|
2010-12-25 20:37:00 3270
IPC Posix Semaphore
Posix信号灯 <!--[if !supportLists]-->1、 <!--[endif]-->函数列表(#include <semaphore.h>) 有名信号灯特异函数 <!--[if !supportLists]-->Ø <!--[endif]-->sem_t *sem_open(const char *name...
2010-12-25 20:37:00 73
原创 IPC Read/Write Lock
<br /><br />读写锁<br />1、 函数列表<br />Ø int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);<br />int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);<br />int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);<br />int pthread_rwloc
2010-12-25 20:36:00 1415
IPC Read/Write Lock
读写锁 <!--[if !supportLists]-->1、 <!--[endif]-->函数列表 <!--[if !supportLists]-->Ø <!--[endif]-->int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock); int pthread_rwlock_wr...
2010-12-25 20:36:00 129
原创 IPC Mutex And Conditional Variable
<br /><br />互斥锁与条件变量<br />1、函数列表<br />Ø int pthread_create(pthread_t *restrict thread,<br /> const pthread_attr_t *restrict attr,<br /> void *(*start_routine)(void*), void *restrict arg);<br />线程创建函数,输入为属性attr(如果attr为NU
2010-12-25 20:35:00 1609
IPC Mutex And Conditional Variable
互斥锁与条件变量 1、函数列表 <!--[if !supportLists]-->Ø <!--[endif]-->int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), voi...
2010-12-25 20:35:00 86
原创 IPC SystemV Message Queue
<br /><br />SystemV消息队列<br />1、 函数列表<br />Ø key_t ftok(const char *pathname, int proj_id);<br />//# include <sys/types.h><br />//# include <sys/ipc.h><br />IPC消息队列有一个key的属性(类型为key_t),一般由此函数产生,产生方法为:根据文件名pathname(必须存在且有权限访问)得到索引节点号,然后将索引节点号和子序列号
2010-12-25 20:33:00 1687
IPC SystemV Message Queue
SystemV消息队列 <!--[if !supportLists]-->1、 <!--[endif]-->函数列表 <!--[if !supportLists]-->Ø <!--[endif]-->key_t ftok(const char *pathname, int proj_id); //# include <sys/...
2010-12-25 20:33:00 115
原创 IPC FIFO
<br />FIFO<br />1、函数列表<br />Ø int mkfifo(const char *pathname, mode_t mode);<br />如果pathname指向的FIFO不存在,则创建FIFO,此时返回0;如果pathname指向的FIFO已经存在,则返回-1,errno==EEXIST。<br />关于mode,此函数已隐含包含O_CREATE和O_EXCL,也就是说要么创建一个新的FIFO,要么返回EEXIST错误。指定S_IRUSR | S_IWUSR |
2010-12-25 20:32:00 1933
IPC FIFO
FIFO 1、函数列表 <!--[if !supportLists]-->Ø <!--[endif]-->int mkfifo(const char *pathname, mode_t mode); 如果pathname指向的FIFO不存在,则创建FIFO,此时返回0;如果pathname指向的FIFO已经存在,则返回-1,errno==EEXIST。 关...
2010-12-25 20:32:00 64
IPC PIPE
管道 <!--[if !supportLists]-->1、<!--[endif]-->函数列表 <!--[if !supportLists]-->Ø <!--[endif]-->int pipe(int filedes[2]);//#include <unistd.h> 创建一个管道,返回的两个文件描述字filedes[0...
2010-12-25 20:31:00 81
服务器ESXI虚拟机创建和使用说明.docx
2020-09-01
MySQL在大型网站的应用架构演变.docx
2020-09-01
Mycat生产实践之数据迁移与扩容实践.docx
2020-09-01
阿里云OSS云存储方案.docx
2020-09-01
华为FusionCloud 2.06 技术白皮书.doc
2020-09-01
windiff for windows
2012-07-14
log4cplus日志库及封装程序文件
2009-12-25
流媒体rtp和rtcp多份文档资料
2009-04-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人