Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2596550
  • 博文数量: 333
  • 博客积分: 4817
  • 博客等级: 上校
  • 技术积分: 4413
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-28 10:51
文章分类

全部博文(333)

文章存档

2017年(20)

2016年(57)

2015年(27)

2014年(20)

2013年(21)

2012年(164)

2011年(24)

发布时间:2014-02-20 20:10:22

函数名: vfprintf功  能: 送格式化输出到一流中用  法: int vfprintf(FILE *stream, char *format, va_list param);简  介:stream为文件流,当该参数为stderr时,打印到屏幕输出;后两个参数用法与printf相同。程序例:#include <stdio.h.........【阅读全文】

阅读(2834) | 评论(0) | 转发(0)

发布时间:2014-02-20 19:57:06

宏定义中的##操作符和... and _ _VA_ARGS_ _1.Preprocessor Glue: The ## Operator预处理连接符:##操作符Like the # operator, the ## operator can be used in the replacement section of a function-like macro.Additionally, it can be used in the replacement section of an obje.........【阅读全文】

阅读(2154) | 评论(0) | 转发(0)

发布时间:2014-02-17 09:38:07

 pthread_cond_wait()/************pthread_cond_wait()的使用方法**********/    pthread_mutex_lock(&qlock);        pthread_cond_wait(&qready, &qlock);    pthread_mutex_unlock(&qlock);/*****.........【阅读全文】

阅读(8807) | 评论(0) | 转发(2)

发布时间:2014-02-16 20:19:08

建立多任务模型,并用线程来实现   符合POSIX标准的UNIX操作系统提供了线程的控制函数,如:线程的创建和终止、线程之间的互斥、线程之间的同步等。利用这些系统函数可以成功地模拟消息队列,来实现线程间数据共享和同步,以完成多任务的实时性。为成功地描述线程间数据共享和同步,以下列任务模型为例。 .........【阅读全文】

阅读(2079) | 评论(0) | 转发(1)

发布时间:2013-08-14 15:05:30

http://www.hifyl.com/index.php?m=bbs......【阅读全文】

阅读(1026) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册