码迷,mamicode.com
首页 >  
搜索关键字:posix    ( 1397个结果
Linux多线程实践(7) --多线程排序对比
屏障int pthread_barrier_init(pthread_barrier_t *restrict barrier, const pthread_barrierattr_t *restrict attr, unsigned count); int pthread_barrier_destr...
分类:编程语言   时间:2015-02-19 18:41:37    阅读次数:261
Linux多线程实践(8) --Posix条件变量解决生产者消费者问题
Posix条件变量int pthread_cond_init(pthread_cond_t *cond, pthread_condattr_t *cond_attr); int pthread_cond_destroy(pthread_cond_t *cond); int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex...
分类:编程语言   时间:2015-02-19 18:39:58    阅读次数:261
Linux多线程实践(5) --Posix信号量与互斥量解决生产者消费者问题
Posix信号量Posix 信号量有名信号量无名信号量sem_opensem_initsem_closesem_destroysem_unlink sem_waitsem_post 有名信号量#include /* For O_* constants */ #include /* For mode constants */ #include sem_t *s...
分类:编程语言   时间:2015-02-19 17:32:31    阅读次数:234
Linux IPC实践(10) --Posix共享内存
1. 创建/获取一个共享内存#include #include /* For mode constants */ #include /* For O_* constants */ int shm_open(const char *name, int oflag, mode_t mode);参数:   name:  共享内存名字;   oflag: 与open...
分类:系统相关   时间:2015-02-19 16:23:17    阅读次数:219
Linux IPC实践(7) --Posix消息队列
1. 创建/获取一个消息队列#include /* For O_* constants */ #include /* For mode constants */ #include mqd_t mq_open(const char *name, int oflag); //专用于打开一个消息队列 mqd_t mq_open(const char *name,...
分类:系统相关   时间:2015-02-18 19:55:53    阅读次数:497
linux常用函数简单介绍
mmap函数简介:mmap函数是unix/linux下的系统调用,来看《Unix Netword programming》卷二12.2节对mmap的介绍:The mmap function maps either a file or a Posix shared memory object into...
分类:系统相关   时间:2015-02-09 20:09:39    阅读次数:217
【转】定时器、sigevent结构体详解
原文网址:http://blog.163.com/zheng_he_xiang/blog/static/18650532620116311020390/最强大的定时器接口来自POSIX时钟系列,其创建、初始化以及删除一个定时器的行动被分为三个不同的函数:timer_create()(创建定时器)、t...
分类:其他好文   时间:2015-02-09 15:47:54    阅读次数:150
【转】Linux Posix Timer使用
原文网址:http://blog.csdn.net/hongszh/article/details/8608781最强大的定时器接口来自POSIX时钟系列,其创建、初始化以及删除一个定时器的行动被分为三个不同的函数:timer_create()(创建定时器)、timer_settime()(初始化定...
分类:系统相关   时间:2015-02-09 15:42:19    阅读次数:263
linux学习笔记之线程
一、基础知识1:基础知识。 1,线程需要的信息有:线程ID,寄存器,栈,调度优先级和策略,信号屏蔽字,errno变量和线程私有数据。 2,进程的所有信息对所有线程都是共享的。 3,是否支持有多线程有以下两种方式测试: 1)编译时确定:#ifdef _POSIX_THREADS 2)...
分类:编程语言   时间:2015-02-03 14:43:06    阅读次数:244
linux学习笔记之系统标准:POSIX,ISO C...
一、POSIX,ISO C,Single UNIX Specification的概念。 1,POSIX:Portable Operating System Interface。可移植操作系统接口。期望获得源码级别的软件可移植性。 2,ISO C:提供C语言的标准化。提高C语言在不同操作系统的可移.....
分类:系统相关   时间:2015-02-02 17:34:22    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!