Print This Article Post Comment Add To Favorites Email to Friends Ezine Ready

A Windows Process Is Essentially Container

By: windows process Home | Computers-and-Technology


A Windows process is essentially container that hosts the execution of an executable image file. It is represented with a kernel process object and Windows uses the process object and its associated data structures to store and track information about the image’s execution. For example, a process has a virtual address space that holds the process’s private and shared data and into which the executable image and its associated DLLs are mapped. Windows records the process’s use of resources for accounting and query 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 groups, and privileges assigned to the process.

Finally, a process includes one or more threads that actually execute the code in the process (technically, processes don’t run, threads do) and that are represented with kernel thread objects. There are several reasons applications create threads in addition to their default initial thread: processes with a user interface typically create threads to execute work so that the main thread remains responsive to user input and windowing commands; applications that want to take advantage of multiple processors for scalability or that want to continue executing while threads are tied up waiting for synchronous I/O operations to complete also benefit from multiple threads.
Thread Limits

Besides basic information about a thread, including its CPU register state, scheduling priority, and resource usage accounting, every thread has a portion of the process address space assigned to it, called a stack, which the thread can use as scratch storage as it executes program code to pass function parameters, maintain local variables, and save function return addresses. So that the system’s virtual memory isn’t unnecessarily wasted, only part of the stack is initially allocated, or committed and the rest is simply reserved. Because stacks grow downward in memory, the system places guard pages beyond the committed part of the stack that trigger an automatic commitment of additional memory (called a stack expansion) when accessed.

Process Information

The system maintains a list of running processes. You can retrieve the identifiers for these processes by calling the EnumProcesses function. This function fills an array of DWORD values with the identifiers of all processes in the system.

Many functions in PSAPI require a process handle. To obtain a process handle for a running process, pass its process identifier (obtained from EnumProcesses) to the OpenProcess function. Remember to call the CloseHandle function when you are finished with the process handle.



Article Source: http://www.eArticlesOnline.com

About the Author:
who needs to know the exact nature and purpose of every process that should,and should not, be running on their PC.For more information visit http://www.windows-processes.com/.


Tags: , , ,

Please Rate this Article

 

Not yet Rated

Click the XML Icon Above to Receive Computers-and-Technology Articles Via RSS!

Recent Related Articles From Computers-and-Technology

  • The Windows Process Activation Service
    By: windows process | Feb 22nd 2010
    The Windows Process Activation Service (WAS) manages the activation and lifetime of the worker processes that contain applications that host Windows Communication Foundation (WCF) services. The WAS process model generalizes the IIS 6.0 process model for the HTTP server by removing the dependency on HTTP. This allows WCF ser ... Read

  • A Legitimate Windows Process
    By: windows process | Feb 22nd 2010
    The dwm.exe windows process is a recent process which adds exciting and novel new features to Windows. One of the most noticeable features of the new Windows Vista operating system, and also one of the more controversial features, was the new Vista Aero interface, which incorporated a number of innovations to the MS Windows ... Read

  • Windows Cmd.exe Command Process Errors
    By: windows process | Feb 22nd 2010
    The Windows process cmd.exe is related to the Microsoft disc operating system command prompts. A 32-bit command prompt, it is used together with Windows NT, XP and 2000 and it should only be disabled once it causes computer problems. If cmd.exe is found in a folder other than windows within the C drive, then it is most prob ... Read

  • Windows Process And Macro Automation Software
    By: windows process | Feb 22nd 2010
    Often, there are many people that feel lost when it comes to creating a windows automation script or macros for their repetitive work. And this is mainly because they just can't visualize how automation can be applied to their workflows.
    Read

  • Information About Smss.exe
    By: Peter Garant | Oct 16th 2009
    Smss.exe is one of the most critical processes in the Windows system. Recognize the many functions of smss.exe and keep malware from affecting this file. Read

  • What Can Bpm And Bpi Do For You?
    By: Gregory Burrus | Dec 4th 2006
    Do you need to know if a business process improvement (BPI) assessment can improve your office operations? Are you asking if BPI and business process management (BPM) training and education can improve your business? Do you wonder what business process management is versus business process improvement? Do you know what size ... Read

  • Solcistium Is A Specialized Recruitment Firm Dealing With Workforce Solutions
    By: Mark Doherty | Sep 11th 2008
    Contact Solcistium for the best workforce solutions, recruitment process re-engineering, recruitment process outsourcing, and business process re-engineering that is available anywhere in the United Kingdom. Read

  • Can Iovc And Office Process Improvement Really Save You Money?
    By: Gregory Burrus | Jan 25th 2007
    IOVC technologies can cut your business costs sharply. Business process improvements that address your office processes have demonstrated many business benefits for a long time now. Read

  • Generic Host Process Error Win32 - Look At It With Open Eyes
    By: Konstantin Artemev | May 12th 2009
    One of foul features of generic host process error win32 is its habit to screen itself amid harmless Svchost threads. Get rid of this problem in a blast. Read

  • American Visa Process
    By: Ben Hart | Sep 27th 2009
    The United States Visa obtainment process can be daunting as well as confusing because there are so many different visa categories, and each category has a slightly different way of processing through the American Immigration system. Read


Copyright © 2005-2011 eArticlesOnline, LLC - All Rights Reserved
Terms of Service | Privacy Policy