-
Pthread-of-linux
在linux环境下编写一个控制台应用程序,程序中有一个共享的整型变量shared_var,初始值为0;创建一个线程并使其立即与主线程并发执行。新创建的线程与主线程均不断地循环,并输出shared_var 的值。主线程在循环中不断地对shared_var 进行加1操作,即每次循环shared_var 被加1;而新创建的线程则不断地对shared_var 进行减1 操作,即每次循环shared_var 被减1。观察程序运行的结果,并对你看到的现象进行解释。(Written in the linux environment a console application, the program has a shared integer variable shared_var, the initial value of 0 create
A thread and make it run concurrently with the main thread immediately. The newly created thread and main thread are constantly circulating, and the output shared_var
Value. The main thread in a loop constantly on shared_var are incremented, that is plus 1 for each cycle shared_var and the new line created
Process is constantly on the shared_var decremented, that is, each cycle shared_var is decreased by 1. Observe the results of running the program, and you
To explain the phenomenon seen.)
- 2011-12-08 11:21:25下载
- 积分:1
-
at1024c
AT24C1024驱动程序,可以跨页读写的标准程序(AT24C1024 driver, you can read and write across standard program page)
- 2021-03-22 10:09:16下载
- 积分:1
-
Robotoos2d-kharazmi88-Fix.tar
trilearn (Robotoos2d kharazmi88-Fix)
Source Code Team Robotoos2d kharazmi88 iran
First Competition Kharzmy
- 2011-12-06 07:17:39下载
- 积分:1
-
MultiADReadDemo
研华采集卡多通道AD读取程序,VC6下测试通过。(Advantech multi-channel AD acquisition card reader, VC6 under test.)
- 2020-09-10 11:18:00下载
- 积分:1
-
1302
1302驱动文件,可以直接用来驱动1302时钟芯片,调试过,好使。(1302 driver files, can be directly used to drive the 1302 clock chip, debugging, and so.)
- 2013-11-01 09:14:13下载
- 积分:1
-
18b20
18b20的驱动程序,关键是时序,赶紧给我积分啊,急需(18b20 driver, the key is timing, and quickly give me points ah, need)
- 2013-10-03 21:39:41下载
- 积分:1
-
EnumDevice
使用setupapi枚举硬件设备的代码,很经典的(setupapi )
- 2012-02-07 18:09:43下载
- 积分:1
-
qudongtx
曾经过TX的驱动源代码
VC++编写
给新手参考用
希望能对新手有用(TX has been the driving source code VC++ written reference to the novice hoping to be useful for novice)
- 2011-08-09 12:40:39下载
- 积分:1
-
virtual
关于虚拟函数和虚拟表很好的实例,供给大家看看(About Virtual functions and virtual table good example, we look at supply)
- 2014-10-22 19:40:42下载
- 积分:1
-
PCI-9524-Users-Guide
PCI 数据采集卡,9524,实现数据采集,凌华的卡,性能高,性价比好(PCI Card,easy to use,very good,cheap
and can fit many cases)
- 2016-06-02 14:41:48下载
- 积分:1