Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode OS program Linux-Unix
Title: shared_var Download
 Description: In the Linux environment. Write a console application, in the program have a Shared shared_var integer variables, the initial value of 0 Create a thread and make it with the main thread immediately execute concurrently. The newly created thread and the main thread are continuously circulation, and the value of output shared_var. The main thread in a loop to add 1 shared_var continuously operating, namely each loop shared_var added 1 While the newly created thread continuously to minus 1 shared_var operation, namely each loop shared_var was minus 1. Observe the result of the program is running, and to explain the phenomenon of you see.
 Downloaders recently: [More information of uploader 段昀]
 To Search:
File list (Check if you may need any files):
 

shared_var.c
shared_var.out
    

CodeBus www.codebus.net