-
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
-
MediaPlayer
说明: 使用DirectShow设计媒体播放器,实现抓图,图像亮度,饱和度,对比度的设置(Use DirectShow media player designed to achieve drawings, image brightness, saturation, contrast settings)
- 2010-04-15 15:03:38下载
- 积分:1
-
airlinesystem
航空系统程序,实现航空班机的订票,退票,查询线路等问题。(Procedures for the aviation system, the achievement of air flight booking, refunds, and so on-line inquiries.)
- 2009-05-01 13:07:21下载
- 积分:1
-
viterbi_ultmate
维特比译码算法,用 VC++编写的(3,1,2)码译码过程,(Viterbi algorithm, using VC++ to prepare the (3,1,2) code decoding process,)
- 2020-06-30 04:20:02下载
- 积分:1
-
multimedia
第十一讲 多媒体编程 第十一讲 多媒体编程 (XI XI speakers talk about multimedia programming multimedia programming)
- 2008-05-27 15:09:47下载
- 积分:1
-
Calc
a simple Calc Pro from my fist work in VB studio
- 2009-10-31 19:23:30下载
- 积分:1
-
ennonaudio
用VC++实现的微波炉自动控制演示程序,代码完整,做课程设计的可参考下()
- 2018-06-21 18:01:33下载
- 积分:1
-
test21
说明: 五子棋实现人机对战,利用危害对进 行优先级计算(renju achieve human-machine players, for use against right-priority calculation)
- 2005-09-04 01:26:44下载
- 积分:1
-
bindCode2008
AppWizard has created this BindFile application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your BindFile application.(AppWizard has created this BindFile appli cation for you. This application not only demon strates the basics of using the Microsoft Found ation classes but is also a starting point for wr iting your application. This file contains a su mmary of what you will find in each of the files th at BindFile make up your application.)
- 2007-06-07 14:12:17下载
- 积分:1
-
VCDataConv
有关VC开发过程中常被人忘记的,但有很值得注意的各种数据类型之间的转换(the development process people often forget, but there are noteworthy various types of data conversion between the)
- 2007-05-10 14:34:03下载
- 积分:1