1 / 16

Processes : Basic Concepts

Processes : Basic Concepts. CPE 261403 - Operating Systems. OS Functions (2.1). Resource Allocation. Accounting. Protection & Security. 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) {

llivengood
Télécharger la présentation

Processes : Basic Concepts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related