Skip to content

Windows processes

These are some old notes from One Note that wrote back in the day, when I was starting my I.T. career. Kinda unrefined and may apply for older Windows versions like, Windows 7, Windows 8, Windows 8.1 and earlier versions of Windows 10.


This is also for other operating systems. Windows key + R and type in resmon for resource monitor Perfmon /rel for reliabilt monitor.

What are Windows processes?

'They are like silo's where we can launch application and absolutely isolate them from each other. Remember within a process you can have several threads. Everything run in processes except the system.

Why do we have processes?

The operating system keeps its processes separated and allocates the resources they need, so that are less likely to interfere with each other and cause system failures, like deadlock, lock-up or disk trashing.

The operating system may also provide mechanism for (IPC) Inter-process communication to enable processes interact safe and predictable ways. Exchange data among multiple threads in one or more processes.

What is Inter Process Communication Protocol?

A process that you can copy a graphic from the browser to a word document.

processes_states

When you have a single core cpu, the cpu can execute 1 code at a time. (micro second) When you have more cores you can execute more. When a process is 'running' the cpu is excuting it.

What are handles?

Handles are objects needed by the process: -files and folders

-Registry keys

-Graphical objects/elements that the process is using.

-Events

Note: handles lock these objects!

What is a library? (Application Programming Interfaces)

Prewritten codes by Microsoft. For example Direct X, OpenGL

Better metrics for cpu usage (CPU usage metrics)

Requirement tool: Process Explorer

What is Context Switch Delta? (it is more accurate then context switch)

The process within the running state it started here and it ended here. It tells the time between starting the process and ending it.

What is context switch?

Means how many times we went from waiting to running state

What are threads?

-Is the basic inside a process

-A thread is the basic unit to which the operating system allocates processor time. A thread can execute any part of the process code, including parts currently being executed by another thread

-One or more threads run in the context of the process

-Multi-threaded applications or processes take full-advantage of Hyper-Threading CPUs or multi-core CPUs.

-A thread is actually the executable code.

Disk queue length is:

Is metric that displays the number of outstanding requests (read and write) at any given time. (If it goes beyond 5, you have serious problems)

Done