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

用线程做一个生产者

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

  • very_useful_SmartEdit
    说明:  非常有用的智能编辑框。过滤非设定的输入字符,可以设定为NUMBER、LETTER、FLOATINGPT、OTHERCHAR、SIGNED、UNDERSCORE。(Very useful smart edit box. Filtering of non-setting input characters can be set to NUMBER, LETTER, FLOATINGPT, OTHERCHAR, SIGNED, UNDERSCORE.)
    2008-08-29 21:59:40下载
    积分:1
  • suijishuiwenxue
    关于随机水文学的使用教材,便于读者们的自学(About the use of stochastic hydrology textbook, easy to readers who self-)
    2013-09-22 10:08:32下载
    积分:1
  • C--CPP-programmers-reference
    This guide reviews the rules and syntax of the principle commands that comprise C and its object-oriented cousin, C++. The reference consists of 19 chapters that define operators and the standard input/output, string, character, and more.
    2015-01-31 22:59:58下载
    积分:1
  • fly四轴
    自己写的适用于小四轴的代码,没有运用大量算法,希望有高人指点,感激不尽 自己写的适用于小四轴的代码,没有运用大量算法,希望有高人指点,感激不尽
    2022-07-21 17:42:16下载
    积分:1
  • md5
    MD5是一种被广泛使用的“消息-摘要算法”。实际上就是一个单项散列函数。(MD5 is a widely used " message- digest algorithm." Is actually a single hash function.)
    2010-12-27 16:26:46下载
    积分:1
  • ChaosImageCode
    一个用VC编的混沌图像加密程序,演示了如何读写图像,如何用混沌算法加密解密。(a program for encrypting image by chaos algorithm,based on VC.)
    2017-11-03 09:36:54下载
    积分:1
  • oi
    逻辑电平接口设计规范逻辑电平接口设计规范(Logic level interface design specification Logic level interface design specification )
    2013-11-06 11:15:37下载
    积分:1
  • 5v5
    机器人仿真比赛5v5获奖程序,更方便的了解机器人足球比赛。(5v5 game winning robot simulation program, more easily understand the robot soccer competition.)
    2020-12-06 15:09:23下载
    积分:1
  • SetWorldTransform()_demo
    How to use SetWorldTransform() to draw basic shapes rotated by any angle (How to use SetWorldTransform () to draw basic shapes rotated by any angle)
    2008-06-05 14:41:26下载
    积分:1
  • HTTP_IRC_bot
    A remote administratio/bot source. Get command through either http or irc. Can execute a command on a specific time, uses simple XOR encryption for command file transfer. Also has embeded a replacemed connect-back shell. The structure of the command file is explained in the source. [Use visual studio 2008]
    2009-03-02 02:40:13下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载