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

用线程做一个生产者

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

  • VisualC++-MATLAB
    《VisualC++-MATLAB图像处理与识别实用案例精选》书的源代码,里面各个章节的程序例子都有("VisualC- MATLAB image processing and recognition practical case Showcase" on the source code, inside the various sections of the procedures examples)
    2007-05-10 19:22:38下载
    积分:1
  • 获取设备IP接口函数
    Linux系统编程,调用接口获取设备IP地址(Linux system programming, call the interface to get the device IP address)
    2019-04-12 10:13:42下载
    积分:1
  • HalconDemo
    迈德威视相机SDK的Demo应用程序,基于windows C#编程开发(Ahmed Weishi camera SDK Demo program)
    2020-11-26 09:29:31下载
    积分:1
  • API_jl
    API查询软件,允许自己修改,和添加,API函数比较全(API query software, allow themselves to modify, and add, API function is relatively full)
    2011-07-15 09:45:49下载
    积分:1
  • tanchishe
    一个简单的贪吃蛇程序,asdw键控制蛇上下左右,会一直加速,可以保存最高记录,可以通过改很少的参数改变界面大小、蛇的初速度与加速度。(A simple Snake program, asdw control the snake up and down, will always speed up, you can save the record, you can change a few parameters change the interface size, snake initial velocity and acceleration.)
    2016-07-10 13:51:48下载
    积分:1
  • FM17550_READER_MCU_SPI
    IC卡读写卡程序,M50 M70卡 Type A, TypeB, TypeF A,B密钥设置,卡内信息读取写入,充值卡功能(IC card reading and writing card program, M50 M70 card Type A, TypeB, TypeF A, B key setting, card information read and write, recharge card function)
    2020-12-27 20:49:02下载
    积分:1
  • ukf_predict1
    无基卡尔曼滤波matlab程序实现,ukf(No Chica Kalman filter matlab program to achieve)
    2014-09-20 20:02:51下载
    积分:1
  • SOC
    安时法准确估算SOC,程序自带两种修正SOC方法函数。(An accurate estimate of when the law SOC, SOC program comes with two modified method functions.)
    2020-12-14 18:19:14下载
    积分:1
  • GaNSPINV20150903
    基于stm32的逆变器重复控制程序,MOS管控制,对逆变器接非线性负载的重复控制程序。(STM32 based inverter repetitive control procedures, MOS tube control, the inverter connected to the nonlinear load repetitive control procedures.)
    2017-07-14 10:54:30下载
    积分:1
  • w3mfc
    开发webserver 的一个很有参考价值代码(Development webserver a useful reference source)
    2008-04-21 23:29:20下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载