Description: Using shared memory communication between multi-threading. Derived from sub-thread after main thread is in sleep mode, waiting for the end of the child issued by the end of the thread wake-up signal. After being awakened, the main thread to the end of the output information on the screen! Thread A writes to the shared memory, A ~ Z of the capital letters. Thread B through shared memory to receive these letters, and save it to/test.dat file. Note that the synchronization between threads mutually exclusive!
To Search:
- [linuxpthread] - multithreaded programming examples
- [1243693139] - buffer under VC operation, such as writi
- [socket] - vc++ socket multi-threaded demo
- [ET2] - Thread description. Main program creates
- [DataShare] - Thread synchronization instance: in the
File list (Check if you may need any files):
example
.......\Makefile
.......\shm_thread.c