登录
首页 » C# » 用线程做一个生产者

用线程做一个生产者

于 2022-04-24 发布 文件大小:21.50 kB
0 101
下载积分: 2 下载次数: 1

代码说明:

用线程做一个生产者-消费者同步问题 其实我是想用线程做一个生产者-消费者同步问题,现在已经成功了,贴出来,大家请指证. 我想让线程thread1和thread2按顺序显示,于是加了个信号量mysem,并且在新建两个线程的两个函数中进行P,V操作,来控制先后显示顺序-threads do with a producer-consumer Synchronization I actually want to do with threaded a producer-consumer synchronization issue, it is a success and put them out, please refer to certification. I want threaded thread1 and thread2 sequence, then added a signal mysem volume, and the new two threads of two function for the P, V operation, to control the sequence has revealed

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Send
    基于stm32f103野火开发板的由于nrf24l01无线传输(STM32F103 wildfire development board based on nRF24L01 wireless transmission)
    2018-04-22 16:18:12下载
    积分:1
  • UsingIDLDrawWidgetPaint
    说明:  国内牛人写的DEMO,对于做开发进行C#和IDL混编的人是很好的学习资料(Domestic cattle were written DEMO, for doing development for C# and IDL mixed people are good learning materials)
    2011-03-04 14:23:09下载
    积分:1
  • Uav-ultimate-program
    基于 APM 飞控板的无人机 程序 是基于嵌入式系统的 全用的是c语言(Based on the flight control board uavs APM program is based on embedded system with all the c language is)
    2012-04-18 21:25:05下载
    积分:1
  • VC_and_MATLAB_Map1
    基于VC_和MATLAB混合编程绘制三维图形(VC_ and MATLAB mixed programming based on three-dimensional graphics rendering)
    2013-09-04 10:37:35下载
    积分:1
  • 潮汐调和分析
    说明:  可以利用某验潮站一定观测周期内的水位数据进行调和分析(最小二乘法)求解出十一个主要分潮的潮汐调和常数(The harmonic constants of eleven main tidal components can be obtained by harmonic analysis of water level data in a certain observation period of a tide gauge station (least square method).)
    2020-06-28 22:20:01下载
    积分:1
  • preprocess
    基于Opencv和VS2010的数字图像预处理过程,包含常用的预处理操作,例如平滑,滤波之类,可以完成大部分图像操作(Based on Opencv and VS2010 digital image pretreatment process, include the pretreatment of the commonly used operation, such as smoothing, filtering and so on, can complete most of the image manipulation)
    2016-05-12 11:26:21下载
    积分:1
  • ge
    说明:  求解在一个三角形上的任何一点,到另外一点的距离最小的一个点。(solution in a triangle on any point to another point of the smallest distance between a point.)
    2005-03-24 16:09:46下载
    积分:1
  • calibration-3-cameras
    C++和halcon结合,用于图形处理时进行三相机标定(C++ and halcon combined for three camera calibration)
    2013-09-09 10:12:10下载
    积分:1
  • kaoshi
    c++实现的考试成绩管理系统,基于access数据库,可供初学者参考c++语言,及完整系统的设计与实现。(c++ implementation of the test result management system, based on the access database, available for beginners reference c++ language, and complete system design and implementation.)
    2010-12-06 14:50:57下载
    积分:1
  • C
    说明:  高质量c++语言编程书籍,适合有一定c基础的人员参考(High-quality books, c++ programming language, suitable for a certain c-based staff members in)
    2010-01-30 22:56:57下载
    积分:1
  • 696518资源总数
  • 106215会员总数
  • 5今日下载