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

CodePudding user response:

reference 1st floor zgl7903 response:
main functions are to come out, search the MSDN basically has examples of use
not found

CodePudding user response:

reference 1st floor zgl7903 response:
main functions are to come out, search the MSDN basically has examples of use
not found

CodePudding user response:

CreateProcessA function
Creating the Processes
CreateMutexA function
Using Mutex Objects

CodePudding user response:

The
reference 4 floor zgl7903 reply:
CreateProcessA function
Creating the Processes
CreateMutexA function
Using Mutex Objects
hello, thank you for your reply, really can't write, can help me to write you, thank you

CodePudding user response:

Don't or don't have the courage and patience to read?

CodePudding user response:

refer to 6th floor zgl7903 response:
is not or don't have the courage and patience to read?
also in c in the black box, first contact with this kind of programming with threads

CodePudding user response:

The suggestion for book Windows to see the operation process, at the very least, you first see

CodePudding user response:

refer to the eighth floor zgl7903 response:
the suggestion for book Windows to see the operation process, at the very least, you first see
ok, thank you
  • Related