Set - 3

Question 1 :

What is DuplicateHandle (API)?

Answer :

Takes an entry in one process's handle table and makes a copy of the entry into another process's handle table

Question 2 :

What is a thread?

Answer :

A thread describes a path of execution within a process. Every time a process is initialized, the system creates a primary thread. This thread begins executing with the C/C++ run-time library's startup code, which in turn calls your entry-point function ( main , Wmain , WinMain , or WWinMain ) and continues executing until the entry-point function returns and the C/C++ run-time library's startup code calls ExitProcess

Question 3 :

What is the limit on per process for creating a thread?

Answer :

The number of threads a process can create is limited by the available virtual memory and depends on the default stack size

Question 4 :

What is Synchronization Objects?

Answer :

Synchronization object s are use to co-ordinate the execution of multiple threads. Which kernel objects are use for Thread Synchronization on different processes? - Event, Mutex, Semaphore

Question 5 :

What is Event Object and why it is used?

Answer :

Event is the thread synchronization object to set signaled state or non-signaled state.