Midterm Flashcards
What is the minimum number of threads in a process?
One
What is the basic executable unit in Windows?
Thread
TLS
Thread Local Storage
What is Thread Local Storage?
A collection of pointers for a thread to allocate storage
What function is used to create a process?
CreateProcess()
How many threads does the CreateProcess() function create?
One
How many parameters does CreateProcess() have?
10
What is the return type of CreateProcess()?
Bool
What object has the handles for the thread and process after CreateProcess() runs?
PROCESS_INFORMATION
Does CloseHandle() terminate the thread?
No, it only deletes the reference within the process
What two things are returned for both the thread and the process created using CreateProcess()
- Handle
- ID
Each process/thread has a unique ______ for the lifetime of the object, but can have many ______.
ID, Handles
If ApplicationName parameter is set to NULL in CreateProcess(), what will the program name be?
The first white-space-deliminated token in CommandLine
What function does a thread in a process use to terminate the process?
ExitProcess()
What function does a process use to terminate a different process?
TerminatePocess()
What are the 2 wait functions?
- WaitForSingleObject()
- WaitForMultipleObjects()
What is the maximum number of wait objects for WaitForMultipleObjects() function?
64
What data type are the times returned from GetProcessTimes()?
FILETIME