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

用线程做一个生产者

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

  • adms
    阿当姆斯显式和隐式求解方法,用四阶龙格库塔作为起始,然后运用四阶阿当姆斯算法求解初值问题。主要程序包含在test2.cpp中,方法简单易懂。编译环境VC2010(Adam James explicit and implicit method for solving fourth-order Runge-Kutta as a start, then use the fourth-order A Williams algorithm for solving initial value problem. The main program contains in test2.cpp method is simple and easy to understand. Compile environment VC2010)
    2012-06-09 11:27:18下载
    积分:1
  • Imattlabcoodem
    图象增强小波变换将一幅图象分解为大小、位置与方向都不同的分量。在做逆变换之前能改变小波变换域中某些系数的大小,,这样就能够洋选择的放大所感兴趣的分量而减小不需要的分量。给定一个图象信号,用二维小波分析析对图象进行增强处理。 (Image enhancement wavelet transform decomposition size, location and direction of the different components of an image. Wavelet transform domain, some the size of the coefficient can change before doing the inverse transformation, so can the component of interest to the amplification of the ocean choose to reduce the unwanted weight. Given an image signal, the analysis of two-dimensional wavelet analysis of image enhancement processing.)
    2012-07-27 21:23:36下载
    积分:1
  • 675846
    email发送页面,精选ios学习编程源码,很好的参考资料。(Email sends the page, select the IOS learning programming source code, a good reference.)
    2013-12-10 10:11:53下载
    积分:1
  • LMD分解信号程序
    可以将信号很好的进行LMD分解,很好用,自己试试看(The signal can be well decomposed into LMD)
    2019-01-24 18:04:11下载
    积分:1
  • pca-sift
    pca-sift算法的实现,采用vc2008开发环境,进行开发,独立运行(pca-sift algorithm, using vc2008 development environment to develop, operate independently)
    2010-05-17 09:46:17下载
    积分:1
  • event_thread
    用CEVENT类中的event事件响应来做线程之间的通讯工作(failed to translate)
    2011-08-29 14:58:08下载
    积分:1
  • LED
    旋转LED的实现,实现用单片机控制电机转速,采用无线供电方式哦(Rotate the LED, achieving MCU control motor speed, the use of wireless power supply oh)
    2013-11-03 18:25:32下载
    积分:1
  • Arduino
    说明:  arduino 8*8像素点阵实现代码(Arduino 8*8 Pixel Matrix Implementation Code)
    2019-01-27 07:26:14下载
    积分:1
  • WebGet
    vc++编写的界面源代码,包括文件下载,站点下载,站点管理.(vc++ prepared interface source code, including file downloads, site download, site management.)
    2008-05-22 15:02:13下载
    积分:1
  • VC++6.0做的划线函数
    基于VC++6.0 MFC框架画圆函数没有任何错误下载可用有助于八分法的理解有助于初学者加深理解语言是C++的 已经验证过了另外还附带说明文档和相应截图可以方便翻阅里面还有关键代码标注  
    2022-02-01 17:55:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载