-
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
-
Unix环境高级编程
说明: Unix环境高级编程 Unix环境高级编程(Advanced programming in UNIX Environment)
- 2020-02-25 18:07:41下载
- 积分:1
-
WMIDemo
WMI查询操作是学习wmi不错的例子,还是值得推荐的(WMI query is learning wmi good example is worthy of recommendation)
- 2014-01-03 22:10:53下载
- 积分:1
-
ProcessInfo
显示当前系统运行的进程,并能够查看进程中所加载的模块(show the system process and modules)
- 2013-08-10 21:50:16下载
- 积分:1
-
bys
这个只是一个开发项目的基本要求和数据库,希望大家在查阅的时候不要太生气,我也只是像找个更好的项目!(This is just a basic requirement for development projects and databases that we should not be too angry when accessible, I would just like to find a better project!)
- 2010-09-13 13:18:23下载
- 积分:1
-
c语言实现 mtk下udp通信协议实现GPS定位功能
说明: mtk下udp通信协议实现GPS定位功能,c语言实现,windows编程(UDP communication protocol under MTK realizes GPS positioning function, C language realization, windows programming)
- 2020-06-18 00:40:02下载
- 积分:1
-
Qvod_P2P
Qvod_P2P-------------源码(Qvod P2P code)
- 2014-01-01 14:20:38下载
- 积分:1
-
24-I2C—读写EEPROM
I2C—读写 EEPROM ,
配置通讯使用的目标引脚为开漏模式;
使能 I2C 外设的时钟;
配置 I2C 外设的模式、地址、速率等参数并使能 I2C 外设;
编写基本 I2C 按字节收发的函数;
编写读写 EEPROM 存储内容的函数(I2C EEPROM i2c gpio errrom)
- 2018-07-24 20:18:43下载
- 积分:1
-
STM32L051-example
STM32L01的各种例子,各个外设资源都有(stm32l01 example)
- 2021-04-09 13:48:59下载
- 积分:1
-
superideoplayer
THE efective ways for player, and the useful code, make you study the media, the technology.
- 2008-03-19 16:00:22下载
- 积分:1