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

用线程做一个生产者

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

  • C# 入门级MVC实例源码(用到了NHibernate)
    C# 入门级MVC实例源码(用到了NHibernate)
    2014-11-25下载
    积分:1
  • OFDMA
    calculates BER of BPSK on OFDM
    2014-01-23 22:09:39下载
    积分:1
  • 51例程
    说明:  陀螺仪数据读取,通过串口进行数据读取...(Gyroscope data reading)
    2019-06-05 12:23:59下载
    积分:1
  • Rs232-RS485
    说明:  串口通讯大权,介绍了RS232,RS422,RS485等串行通讯的协议,规范,具体说明等。帮助你写好串口同学(Serial communication power, introduced the RS232, RS422, RS485 and other serial communication protocol, standardization, and specific descriptions. Students help you write the serial)
    2020-09-17 15:07:54下载
    积分:1
  • ExportHomeWork
    程序包含了三层结构和Excel导出功能,可以快速的了解三层结构。(Program includes a three-tier structure and Excel export functions, you can quickly understand the three-tier structure.)
    2011-10-09 10:17:24下载
    积分:1
  • MPPlinux--mp3
    简单linux下的mp3 设计 支持电脑串口通信操作 实现下一曲 上一曲 停止等 只支持mp3 (Mp3 designed to support the operation of the computer serial communication simple linux one on one stop only supports mp3)
    2013-03-24 18:50:36下载
    积分:1
  • 20130315111705f2o3xusixs
    vic模型,是关于河道汇流计算方面的小程序,可以试试看,看看好不好用。(vic model, it is wonderful, may be you will have good test on it, thank you)
    2020-06-20 17:40:02下载
    积分:1
  • 10086最终版
    说明:  这是一个利用东进语音卡实现10086系统的完整程序,基于MFC,使用语言是C++,该程序实现了与移动10086系统相似的功能。功能包括:拨号、欢迎语言、语言选择、验证、服务选择、消费查询、业务查询、密码修改、天气查询、人工服务等(This is a complete program to implement 10086 system by using Dongjin Voice Card. Based on MFC, the language is C++. The program achieves similar functions as mobile 10086 system. Functions include: dialing, welcome language, language selection, validation, service selection, consumption query, business query, password modification, weather query, manual service, etc.)
    2021-03-11 14:19:25下载
    积分:1
  • CPP
    非常不错的QPSK在matlab中的仿真教程,文档中包含相关的所有代码(very good QPSK in the Matlab simulation Guide, the document contains all the related code!)
    2011-06-09 22:40:14下载
    积分:1
  • 5.18
    编写程序定义一个vector对象,其每个元素都是指向string类型的指针,读取该vector对象,输出每个string的内容及其相应的长度。(Write a program to define a vector object, which each element is a pointer pointing to the string type, reads the vector object, the output of each string and the corresponding length.)
    2015-03-04 15:22:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载