Threads and Process
A brief overview of Process and Threads
Last updated
A brief overview of Process and Threads
Last updated
There are three kinds of processes when using your computer. Background, Apps, and Windows Process. A background is a process that, as it says, runs in the background and isn't seen. You can have apps that do turn in a background process. An example of this would be the wallpaper engine. Windows Process is a Windows process that is almost always a background app and will do Windows processes. An example would be network adapters, keyboard input, and mouse input. Apps An app is installed and used in front of you. Examples of this would be winiit.exe.
All processes Get A PID Number (process ID number). This is used to identify the running process; you can view this through Event Viewer, Task Manager, and Process Hacker if you have that installed.
There are many differences in how antivirus work. There are 2 main kinds of detection: Static and Dynamic detection. This is for the detection of malware and viruses. Static detection involves looking at the code and trying to break it down in order to see it and scan it for its attributes. Dynamic sandboxes it and looks at its behavior to see what it does and how it responds. This, however, can be very hard to find and can be easily avoided by checks for this in the code. Static can have its downsides, and it is hard to find what the code is doing and decompile it.
Multiple threads can come from a process, and multiple processes can come from an application. When using an application, you create or make more processes and threads from the process. An example of this would be msedgwebivie...
Each process is started with a single thread, often called the primary thread, but can create additional threads from any of its threads. A thread is an entity within a process that can be scheduled for execution. All threads of a process share its virtual address space and system resources. In addition, each thread maintains exception handlers, a scheduling priority, thread local storage, a unique thread identifier, and a set of structures the system will use to save the thread context until it is scheduled. Microsoft Windows supports preemptive multitasking, which creates the effect of simultaneous execution of multiple threads from multiple processes. On a multiprocessor computer, the system can simultaneously execute as many threads as there are processors.
Multithreading allows multiple concurrent tasks to be performed within a single process. The advantage of multitasking is the ability to have several applications open and working at the same time. For example, a user can edit a file with one application while another application is recalculating a spreadsheet. To the application developer, the advantage of multitasking is the ability to create applications that use more than one process and to create processes that use more than one thread of execution. For example, a process can have a user interface thread that manages interactions with the user (keyboard and mouse input), and worker threads that perform other tasks while the user interface thread waits for user input. If you give the user interface thread a higher priority, the application will be more responsive to the user, while the worker threads use the processor efficiently during times when there is no user input.