Description: Thread creation and synchronization control in windows2000 environment, create a console process, this process creates two concurrent threads, one reading thread and the other is to write thread. The two threads share an array of A, write threads 10 respectively on the array write operation, each write operation on each element of A assigned a same value read the thread on the array were read for 10 times, each time operation output value of all elements in A. Write the corresponding code, and analyze the running results. Modify the code so that each read-write mutex, that is, write each of the array only after the end of write operations, and vice versa.
To Search:
File list (Check if you may need any files):
sy4
...\Debug
...\.....\sy4.exe
...\.....\sy4.ilk
...\.....\sy4.pch
...\.....\sy4.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\.....\线程完成.obj
...\sy4.dsp
...\sy4.dsw
...\sy4.ncb
...\sy4.opt
...\sy4.plg
...\线程完成.cpp