Chapter 11 – Processes and Services CMIT100 Chapter 11 – Processes and Services
Learning Objectives Describe the steps in starting, controlling/managing, and terminating processes in Windows 7 and Red Hat Linux. Introduce process scheduling through the Windows Task Scheduler and the Linux commands at and crontab. Discuss the role of the service in support of operating systems. Describe the process of configuring Linux services. Discuss how to control service startup in both Windows 7 and Linux.
What is a Process? Executable Program started manually or by another process Parent Process: A process that starts another process Child Process: A process started by another process Also known as a ‘Process Tree’ Orphan: A child process that continues to exist after its parent has stopped Zombie: A defunct process
Processes Foreground: Processes that are interacting with the user Background: Processes that are running without user intervention Process Status: Information about a process’ state, resources, and Process ID (PID)
Managing Processes Windows Task Manager
Managing Processes Linux The ps command The kill command The nice command
Managing Processes Linux The top command
LAB Managing Windows Processes Managing Linux Processes
Scheduling Processes Windows Task Scheduler
Scheduling Processes Linux The at command The cron service Used to run a scheduled process once The cron service Use to run a scheduled process repeatedly Configured by editing the crontab file
LAB Windows Task Scheduler
Services Software that provides a particular function May be running, suspended, or stopped Run in the background Commonly started at boot time In Linux, referred to as daemons Examples: Email service DNS Client service DHCP Client service
Managing Services Windows Services Console
Managing Services Windows Four startup options Dependencies Automatic Automatic (Delayed Start) Manual Disabled Dependencies Services that are needed for other services to start
LAB Configure Windows Services
System Logging Why are system logs useful? Both Windows and Linux provide logging capability
System Logging Windows Event Viewer Three levels EventID Info Warning Error EventID
LAB Using the Windows Event Viewer
Creative Commons Statement