-
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
-
OPC-and-VB
OPC 与vb 6 说明 在VB 6中 引用OPCDAAuto.dll 的方法
(OPC and vb 6
)
- 2011-01-13 16:28:40下载
- 积分:1
-
ZigBeePCC2530P12864
基于CC2530的12860液晶的串行驱动(CC2530-based serial LCD driver 12860)
- 2013-09-04 10:18:31下载
- 积分:1
-
D3D_Camera
DX9 摄像机简单封装
适合初学者学习(DX9 simple package for beginners to learn camera)
- 2011-10-01 09:35:03下载
- 积分:1
-
Colormap
输入为不同的权值,程序根据权值生成各种类型的colormap的值(Enter a different weight, the program type is generated based on the weight of the value of colormap)
- 2016-04-13 15:53:35下载
- 积分:1
-
GetNetSetting2
Visual C++ 6.0.此代码可以进行显示网络设置,包括IP地址等。(Visual C 6.0. This code can show network configuration, including the IP address.)
- 2005-04-20 22:39:50下载
- 积分:1
-
changevideomode
自己写的一个检测某个程序是否运行来改变系统分辨率的控制台程序(Writing own a Detect whether a program is running to change the system console resolution procedures)
- 2009-02-26 15:45:57下载
- 积分:1
-
six-way-to-improve-your-cPP
提高C++的编程能力,使你的编程能力迅速达到一个高度。(Improve the C++ programming skills, so you quickly achieve a high degree of programming skills.)
- 2011-05-23 19:18:17下载
- 积分:1
-
SreenServer
远端屏幕共享,获取屏幕截图并保存,值得学习(Remote screen sharing, take a screenshot and save it, it is worth learning)
- 2014-08-21 17:38:50下载
- 积分:1
-
256
说明: 这是用vc++进行图像变换的源代码,256色转灰度图变换(This is used vc++ Image transform source code, 256-color to grayscale conversion)
- 2008-08-27 11:08:20下载
- 积分:1