Processes

Processes - is another process currently running Running...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Processes
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Processes A process is a program in execution A program may have multiple processes running the same program. E.g. csh running for multiple users or multiple times for the same user. Each process will be a different instance of the same program. All processes have a parent process except for the first process (init process 0). To list processes use ps - List processes of the current shell
Background image of page 2
Example of ps command brastius 636 % ps -e PID TTY TIME CMD 0 ? 0:17 sched 1 ? 0:08 init 2 ? 0:00 pageout 3 ? 112:48 fsflush 317 ? 0:00 xdm 218 ? 0:01 cron 248 ? 0:00 sendmail 57 ? 0:00 sysevent 72 ? 0:00 picld 140 ? 0:20 in.route
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
States of a Process New Ready Running Waiting Terminate d
Background image of page 4
States of a Process New Process is being initialized Ready The process is a candidate to run in the CPU but there
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: is another process currently running Running The process is currently using the CPU. The number of running processes is less than or equal to the number of CPUs Waiting Process is waiting for an event I/O and CPU Bound Process I/O bound processes Processes that are most of the time waiting for an event: mouse event, keyboard, Ethernet packet arrives etc. This type of processes are mostly in waiting state . These processes are in ready/running state only for a short period of time: E.g. update mouse cursor after mouse movement, show a character on the screen etc. CPU bound process : These processes need the CPU for long periods of...
View Full Document

Page1 / 6

Processes - is another process currently running Running...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online