vicki978rt
KLASA A
Dołączył: 18 Mar 2011
Posty: 96
Przeczytał: 0 tematów
Ostrzeżeń: 0/5 Skąd: England
|
Wysłany: Pon 8:14, 30 Maj 2011 |
|
|
indows process is essentially container that hosts the execution of an executable image file. It namely represented with a kernel process thing and Windows uses the process thing and its related file frameworks to store and trail information approximately the image’s execution. For instance, a process has a virtual address space that holds the process’s personal and shared data and into which the executable picture and its associated DLLs are charted. Windows records the process’s use of resources for accounting and ask by diagnostic tools and it registers the process’s references to operating system objects in the process’s handle table. Processes operate with a security context, called a token, that identifies the user account, account teams [link widoczny dla zalogowanych], and privileges assigned to the process.
Finally [link widoczny dla zalogowanych], a process includes an alternatively extra threads that really perform the code in the process (technically, processes don’t run, threads do) and namely are represented with nucleus thread objects. There are several causes petitions create threads in appending apt their default initial thread: processes with a user interface typically build threads to perform go so namely the main thread remains responsive to user input and windowing bids; applications that want to take vantage of multiple processors for scalability alternatively that ambition to continue executing meantime threads are knotted up waiting for simultaneous I/O operations to complete likewise behalf from multiple threads.
Thread Limits
Besides basic information about a thread, including its CPU enroll state, scheduling priority, and resource usage accounting, every thread has a part of the process address space assigned to it, called a pile, which the thread can use for scratch warehouse for it executes agenda code to pass function parameters [link widoczny dla zalogowanych], retain regional variables, and save function return addresses. So that the system’s virtual memories isn’t unnecessarily consumed, only portion of the stack is initially dispensed, or committed and the repose is simply kept. Because stacks grow downward in memories, the system areas guard pages beyond the committed part of the stack that trigger an auto commitment of annexed memory (called a stack expansion) when accessed.
Process Information
The system maintains a menu of sprinting processes. You tin retake the identifiers because these processes along phoning the EnumProcesses feature. This function fills a heap of DWORD amounts with the identifiers of entire processes in the system.
Many functions in PSAPI require a process deal. To get a process handle for a running process, pass its process identifier (obtained from EnumProcesses) to the OpenProcess function. Remember to call the CloseHandle function while you are finished with the process handle.
Post został pochwalony 0 razy
|
|