Threads share the address space of the process. Each thread has its own stack and registers. When OS switches thread, the CPU context is stored in a structure called thread context.
CreateThread fucntion create a new thread. The function call specify a start address ofthe program to be executed. If the start address is LoadLibrary call, the DLLMain will be executed after the DLL is loaded
No comments:
Post a Comment