Home > Software engineering > Embedded operating system examination questions, thanks for your help
Embedded operating system examination questions, thanks for your help
Time:09-20
(1) a process to generate a child process, the main process of randomly generated 100 integer, the child to print the 100 square of integer values, the main process must wait until after the child process, (2) write a process, the process has two threads, a thread from the keyboard to get several number, have their and another thread, please use the thread, the mechanism of interlock and synchronization between
The subject as above, not the thread programming, to use the (1) the createprocess, then use waitforsingleoblect (handle), waiting for the end of the process (2) a thread to accept, and then createmutex to lock this thread and pass value to another thread, wait for, use mutexes, then release
How to write? Really don't understand the
CodePudding user response:
Main functions are to come out, search the MSDN basically has examples of using