========================================================================
CONSOLE APPLICATION : Cycle_Buffer
========================================================================
AppWizard has created this Cycle_Buffer application for you.
This file contains a summary of what you will find in each of the files that
make up your Cycle_Buffer application.
Cycle_Buffer.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
Cycle_Buffer.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named Cycle_Buffer.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
多线程不同步读写共享资源代码
共11个文件
txt:2个
cpp:2个
plg:1个
5星 · 超过95%的资源 需积分: 14 33 下载量 161 浏览量
2011-12-25
18:18:24
上传
评论
收藏 35KB RAR 举报
温馨提示
多线程不同步读写共享资源 文章配套代码 我在很早的时候就听说多线程不同步是可以读写共享资源的。这听起来感觉挺好,因为一旦同步线程,将在同步线程上花去一定的CPU时间片. 这一切都是真的,但是,不同步线程的条件是:只开两个线程,读线程在写线程之后进行操作.满足这两个条件,就可以不用进行线程同步啦! 如何保证读在写之后呢,方法有多种,比如 读线程判断条件if(读指针 == 写指针)。写线程判断条件 if(下一个指针==读线程指针) 其实这就是一简单的生产者与消费者问题。 以下是实现方法 共享资源 我使用循环缓冲区
资源推荐
资源详情
资源评论
收起资源包目录
Cycle_Buffer.rar (11个子文件)
Cycle_Buffer.plg 1KB
Cycle_Buffer.cpp 2KB
工程说明.txt 34B
Cycle_Buffer.ncb 33KB
Cycle_Buffer.dsp 5KB
Cycle_Buffer.opt 48KB
StdAfx.cpp 299B
StdAfx.h 769B
Debug
Cycle_Buffer.exe 152KB
Cycle_Buffer.dsw 547B
ReadMe.txt 1KB
共 11 条
- 1
资源评论
- bdwjh2013-07-12学习学习,代码不错
一政
- 粉丝: 26
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功