I am writing a small program, the program executes 4 threads which will execute funcA (), I have Event Objects and WaitForMultipleObject Use () to create main thread blocks until 4 threads are not over their function, it is easy that I am using setEvent () in the console (), I wonder if SetEvent ( ) Has been executed, always block the main desire? Is there any way to avoid it anyway?
PS: I only know that since the handle is illegal, then set aven will fail, is there any other reason for its failure?
In C ++ you can deliberately throw C ++ exceptions to crash the process.
In C, you can crash the process well, to increase the Windows structured exception, the Windows API function.
Comments
Post a Comment