🎧 New: AI-Generated Podcasts Turn your study notes into engaging audio conversations. Learn more

ops102_5_2.pdf

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Transcript

Process Management - Windows OPS102 Week 5 Class 2 Tiayyba Riaz/John Sellens June 4, 2024 Seneca Polytechnic Outline Processes Recap Processes in Windows OPS102 W5C2 - Process Management - Windows 1/10 Processes Recap Processes Recap Everything that runs on a computer is...

Process Management - Windows OPS102 Week 5 Class 2 Tiayyba Riaz/John Sellens June 4, 2024 Seneca Polytechnic Outline Processes Recap Processes in Windows OPS102 W5C2 - Process Management - Windows 1/10 Processes Recap Processes Recap Everything that runs on a computer is a process Mostly – “threads” are kind of like lightweight processes inside a larger one Processes in Linux are hierarchical – every process has a parent We have tools like "ps", "pstree", and "top" The shell allows foreground, stopped, and background processes We can send signals to processes with the "kill" command Signals have default actions, and can usually be caught or ignored by a process e.g. for cleanup steps In code: fork(), exec() (family of similar functions), wait() OPS102 W5C2 - Process Management - Windows 2/10 Processes in Windows Processes in Windows Windows generally says “task” rather than “process” Generally a hierarchy of parent and child processes Running as different users In code: CreateProcess(), WaitForSingleObject(), CloseHandle() https://learn.microsoft.com/en-us/windows/win32/procthread/processes- and-threads OPS102 W5C2 - Process Management - Windows 3/10 Monitoring Processes in Windows Task manager is the unified user interface for monitoring processes in Windows You can bring task manager by right clicking in the task bar and selecting the task manager in the context menu. Typical view: Monitor resource usage e.g.: CPU Memory Disk Network GPU OPS102 W5C2 - Process Management - Windows 4/10 Process States in Windows The Details tab of Task Manager shows the process states. OPS102 W5C2 - Process Management - Windows 5/10 Process Control in Windows Whenever an application is started, a process is created. This can be viewed in the task manager Right clicking on the process name shows actions that can be taken on the specific process. This includes(among others): End task Set Priority Set Affinity OPS102 W5C2 - Process Management - Windows 6/10 Managing Processes Using PowerShell Windows PowerShell provides the following commands for managing process. Get-Process Get a list of running Windows processes Start-Process Start a process/program Stop-Process Forcibly stop (kill) a process Debug-Process Debug a process Wait-Process Wait until a process ends Monitoring processes using Get-Process OPS102 W5C2 - Process Management - Windows 7/10 Managing Processes Using PowerShell Monitoring a specific process using Get-Process OPS102 W5C2 - Process Management - Windows 8/10 Managing Processes Using PowerShell Stopping a specific process using Stop-Process OPS102 W5C2 - Process Management - Windows 9/10 Summary – Same as Last Class Process management is an important component of every operating system. As users, we should monitor the processes for better system performance. OPS102 W5C2 - Process Management - Windows 10/10

Tags

computer science process management windows
Use Quizgecko on...
Browser
Browser