Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode OS program Linux driver
Title: thread Download
 Description: Thrs_data structure of threads and several variable is used to read data to indicate the start of the thread control and end control.Start_read: when two threads start or display threads first start at the same time, ensure that read data line Mr. Cheng using buffer, = 1 said thread to read data have been used the buffer Start_disp: reading data thread on buffer for the first round of the operation, when it will have two buffer write full, while the thread has not been started or haven t used the buffer, then it should be a thread to read data block, prevent it covers off not shown in the buffer data, said = 1 shows that the thread has started and has used the buffer.In the subsequent alternate read data and display the data in the process, by the mutex to coordinate the relationship between the two threads.Flag: used to identify the end of the data, said = 1 at the end of the buffer 1, 2 = said at the end of the buffer zone 2.
 Downloaders recently: [More information of uploader yangfan]
 To Search:
File list (Check if you may need any files):
 

thread.cpp
    

CodeBus www.codebus.net