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

用线程做一个生产者

于 2022-04-24 发布 文件大小:21.50 kB
0 105
下载积分: 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 个回复

  • SSIM比较图像的相似性
    该文件使用了opencv库函数,利用图像的方差、均值和结构去评判两幅图像的相似性。
    2022-05-05 07:45:21下载
    积分:1
  • tcsearch
    一个绝好的C函数查询系统,本软件可供C语言编程爱好者学习与参阅,值得珍藏。(Function of C a great referral system, the software for the C programming language enthusiasts to learn and see, worthy of collection.)
    2009-04-23 22:50:03下载
    积分:1
  • 基于VTK的三维重建
    利用VTK三维重建软件与VS2010结合,读取格式为1文件的系列图像,并能显示三维重建结果,语言为C++语言(Using VTK 3D reconstruction software and VS2010 combination, read the format of the series of images of 1 files, and can display three-dimensional reconstruction results, the language is C++ language)
    2020-12-15 21:19:14下载
    积分:1
  • UAV-cooperative-search
    多无人机覆盖搜索是无人机的一项主要任务,将搜索区域进行分割后,每个子区域内成为单机覆盖搜索问题,大大降低了任务难度.对无人机的平行搜索策略进行了详细的分析,针对平行搜索策略给出了搜索起始点、转弯关键点、搜索终点的判断依据,使得区域覆盖率达到100% .分析了最小转弯半径对搜索路径的影响(More search UAV coverage is a major task UAV, after the search area is divided, within each sub-region a single search covering problems and greatly reduce the difficulty of the task. UAV parallel search strategy a detailed analysis for parallel search strategy given the starting point of the search, the key turning point, the end point of the search is determined on the basis of such regional coverage to 100 . The influence of minimum turning radius of the search path)
    2016-10-09 10:31:50下载
    积分:1
  • a
    说明:  单周期控制的软开关无桥升压PFC电路的研究(Soft Switch One Cycle Control bridgeless boost PFC circuit)
    2016-04-07 19:42:56下载
    积分:1
  • ADS1256模块资料
    说明:  ADS1256驱动,硬件 软件 程序(ADS 1256 drive)
    2019-08-21 16:45:51下载
    积分:1
  • 卡尔曼滤波 opencv
    基于opencv,利用卡尔曼滤波实现了单目标的跟踪
    2022-04-11 13:56:54下载
    积分:1
  • 干涉条纹
    说明:  使用matlab识别干涉条纹。通过形态学处理,识别干涉条纹数,并计算出条纹间距。内包含交互界面。(The interference fringes are identified by matlab. Through morphological processing, the number of interference fringes is identified and the fringe spacing is calculated. It contains an interactive interface.)
    2019-06-14 14:24:07下载
    积分:1
  • csharpchess
    CSharpChess--用c#编写的国际象棋游戏,能存储和显示完整的分析树-CSharpChess-- c# prepared by the international chess game that can store and display a complete analysis of tree
    2022-07-10 13:07:26下载
    积分:1
  • YSF4_HAL_MOTOR-003.25GA370电机编码器测速
    说明:  使用开发板配套的Mini USB线连接到开发板标示“调试串口”字样的Mini USB接口为开发板供电。按下任一按键之后,在PC端硬石上位机串口助手功能可以看到当前转速(圈/s),编码器值,速度的方向代表电机转动的方向(Connect the Mini USB cable supporting the development board to the Mini USB interface marked with "debugging serial port" to power the development board. After pressing the next button, you can see the current speed (coil /s), encoder value and speed direction of the hard stone upper PC serial port assistant function)
    2019-04-26 22:58:47下载
    积分:1
  • 696516资源总数
  • 106442会员总数
  • 11今日下载