VB.NET Running Process List
The Process component is a powerful tool for managing applications, providing functionalities to start, stop, control, and monitor them. It is a part of the System.Diagnostics namespace, which offers a range of classes for interacting with system processes, event logs, and performance counters.
In addition to retrieving lists of running processes or viewing information about the process that currently has access to the processor, you can get detailed knowledge of process threads and modules both through the Process class itself.
Process component
With the Process component, developers can perform various operations related to system processes. This includes retrieving lists of running processes, accessing detailed information about a specific process, controlling its execution, and monitoring its performance.
In addition to obtaining general information about a process, such as its ID, name, and resource usage, the Process class also provides insights into process threads and modules. Threads represent individual units of execution within a process, and modules are the loaded libraries or code files associated with the process. By utilizing the Process class, developers can access detailed knowledge of threads and modules, enabling them to gain a deeper understanding of the process's behavior and structure.
The following VB.NET program shows how to retrieve the process name and Memory Allocation of each process from a running system. Drag and drop a Button and ListBox control on your VB.NET Form, and copy and paste the following source code on button click event.
Full Source VB.NETConclusion
To optimize performance and minimize unnecessary resource consumption, the Process component intelligently caches information. When information about one member of a group (e.g., process threads or modules) is obtained, the values for the other properties in that group are cached. This means that subsequent accesses to those properties will not trigger new information retrieval unless the Refresh method is explicitly called. This caching mechanism ensures efficient access to process-related information without unnecessary overhead.
- What is Microsoft .Net Framework
- what are the functions of microsoft .net framework?
- Common Language Runtime in .Net Framework
- How Does CLR Work In Dot NET Framework
- What is .Net Framework Class Library
- What is Common Language Specification
- What is Common Type System
- What is Microsoft Intermediate Language
- What is Portable Executable (PE) File Format
- What is Microsoft Just In Time Compiler
- How to Managed Code - Microsoft .Net Framework
- What is .Net Framework Metadata
- what is .Net Framework Assembly
- What is Assembly Manifest
- What is Global Assembly Cache
- What is a .Net Satellite Assembly?
- What are the contents of an Assembly?
- How to Private Assembly and Shared Assembly
- What is Microsoft .Net Strong Name
- What is .Net Namespaces
- What is Application Domain
- What is Code Access Security
- What is Garbage Collection
- .Net Threads