Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode OS program Linux-Unix
Title: 0.c.tar Download
 Description: The classic example of a thread, the thread using pthread library to create two threads, two threads must access a shared variable counter, according to the logic of the source, the two threads each cycle five times, each time adding a loop on the counter variable, the last printed The result should be 10. But because the characteristics of the thread, two threads to synchronize execution, so the result is 6, which is a very interesting thing.
 Downloaders recently: [More information of uploader zjuuuu]
 To Search:
File list (Check if you may need any files):
 

1151577120.c.tar
    

CodeBus www.codebus.net