登录
首页 » Visual C++ » Pthread-of-linux

Pthread-of-linux

于 2011-12-08 发布 文件大小:10KB
0 378
下载积分: 1 下载次数: 9

代码说明:

  在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.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 5615
    5615的驱动电压精度控制在0.2V,经过实验证实。(5615 driving voltage accuracy control in 0.2 V, confirmed through experiments)
    2015-10-06 22:02:52下载
    积分:1
  • Tddiirectrwh
    这个应用程序源码演示了怎样直接地访访问物理驱动driver (The application source code demonstrates how to visit directly access the physical drive driver)
    2012-08-15 00:16:55下载
    积分:1
  • driver
    在制作驱动软件的过程中,运用此程序可以用来截取包(Driver software in the production process, the use of this procedure can be used to intercept packets)
    2010-12-22 09:44:40下载
    积分:1
  • antiterminateprocess
    防止进程被关测试通过,利用驱动写的。呵呵,别想做坏事哦!简单易懂。(Be locked to prevent the process of testing through the use of driver writing. Oh, oh, do not want to do bad things! Easy-to-read.)
    2007-12-15 16:37:21下载
    积分:1
  • HIDEPROCESS
    驱动隐藏进程源码 通过 SSTD 实现(Driver hidden processes the source code)
    2016-12-05 15:55:54下载
    积分:1
  • 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
  • exata5.X-SOURCE-DEBUG
    描述了exata 5.4 源码的调试方法,以及如何导入studio(Describes the EXATA 5.4 source code debugging method)
    2016-12-04 12:22:33下载
    积分:1
  • libcpp
    驱动开发,实现运行时支持,支持异常处理,支持标准模版库(rtti surport in driver)
    2012-08-28 12:04:30下载
    积分:1
  • USB_Blaster_WIN7_x64
    altera usb-blaster win7下驱动,经测试可用(altera usb-blaster win7 to drive, the test can be used)
    2020-06-25 21:20:01下载
    积分:1
  • motorcontrol-newkexing
    固高驱动程序,驱动步进电机和伺服电机还有各种电机程序(A solid high driver drive a stepper motor and servo motor, there are a variety of motor program)
    2020-09-10 05:48:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载