Download
processes basic concepts n.
Skip this Video
Loading SlideShow in 5 Seconds..
Processes : Basic Concepts PowerPoint Presentation
Download Presentation
Processes : Basic Concepts

Processes : Basic Concepts

0 Views Download Presentation
Download Presentation

Processes : Basic Concepts

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Processes: Basic Concepts CPE 261403 - Operating Systems

  2. OS Functions (2.1) Resource Allocation Accounting Protection & Security

  3. What happens when a program executes? Example.c void main() { int i=0; i = add (2,3); printf(“%d”,i); } int add(int p1, int p2) { return (p1 + p2); }

  4. Process States Figure 3.2

  5. Components of a Process Figure 3.1

  6. RAM instruction CPU Example.exe Example.exe Hard Drive

  7. What goes where in RAM? void main() { int i=0; i = add (2,3); printf(“%d”,i); } int add(int p1, int p2) { return (p1 + p2); }

  8. Process Control Blocks Figure 3.3

  9. OS RAM Prog1.exe Prog1.exe Prog2.exe Prog2.exe Hard Drive

  10. Context Switching Figure 3.4

  11. Process 1 Process 2 Execution

  12. Process vs Thread

  13. Process Queues Figure 3.5

  14. Process Scheduling Figure 3.6

  15. Process Creation Figure 3.8