Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 15: Multiprocessing Using Processes and Threads Problem Solving.

Similar presentations


Presentation on theme: "© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 15: Multiprocessing Using Processes and Threads Problem Solving."— Presentation transcript:

1 © 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 15: Multiprocessing Using Processes and Threads Problem Solving & Program Design in C Sixth Edition By Jeri R. Hanly & Elliot B. Koffman

2 1-2 © 2010 Pearson Addison-Wesley. All rights reserved. 1-2 Figure 15.1 Three Modes of Processing

3 1-3 © 2010 Pearson Addison-Wesley. All rights reserved. 1-3 Figure 15.2 Preemptive Multitasking

4 1-4 © 2010 Pearson Addison-Wesley. All rights reserved. 1-4 Figure 15.3 Context Switching from P1 to P2 to P1

5 1-5 © 2010 Pearson Addison-Wesley. All rights reserved. 1-5 Figure 15.4 Interprocess Communications Using Half-duplex Pipes

6 1-6 © 2010 Pearson Addison-Wesley. All rights reserved. 1-6 Figure 15.5 Program to Launch Another Program (parent.c) continued

7 1-7 © 2010 Pearson Addison-Wesley. All rights reserved. 1-7 Figure 15.5 Program to Launch Another Program (parent.c) (cont’d) continued

8 1-8 © 2010 Pearson Addison-Wesley. All rights reserved. 1-8 Figure 15.5 Program to Launch Another Program (parent.c) (cont’d)

9 1-9 © 2010 Pearson Addison-Wesley. All rights reserved. 1-9 Figure 15.6 Program to Be Launched from the Program in Figure 15.5 (child.c)

10 1-10 © 2010 Pearson Addison-Wesley. All rights reserved. 1-10 Figure 15.7 Memory Resources for a Process with Three Threads

11 1-11 © 2010 Pearson Addison-Wesley. All rights reserved. 1-11 Figure 15.8 Program That Creates a Thread and Updates a Shared Resource (thread.c) continued

12 1-12 © 2010 Pearson Addison-Wesley. All rights reserved. 1-12 Figure 15.8 Program That Creates a Thread and Updates a Shared Resource (thread.c) (cont’d) continued

13 1-13 © 2010 Pearson Addison-Wesley. All rights reserved. 1-13 Figure 15.8 Program That Creates a Thread and Updates a Shared Resource (thread.c) (cont’d)

14 1-14 © 2010 Pearson Addison-Wesley. All rights reserved. 1-14 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (caseused.c) continued

15 1-15 © 2010 Pearson Addison-Wesley. All rights reserved. 1-15 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

16 1-16 © 2010 Pearson Addison-Wesley. All rights reserved. 1-16 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

17 1-17 © 2010 Pearson Addison-Wesley. All rights reserved. 1-17 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

18 1-18 © 2010 Pearson Addison-Wesley. All rights reserved. 1-18 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

19 1-19 © 2010 Pearson Addison-Wesley. All rights reserved. 1-19 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

20 1-20 © 2010 Pearson Addison-Wesley. All rights reserved. 1-20 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

21 1-21 © 2010 Pearson Addison-Wesley. All rights reserved. 1-21 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d) continued

22 1-22 © 2010 Pearson Addison-Wesley. All rights reserved. 1-22 Figure 15.9 Program for Modeling the Delivery and Dispensing of Gasoline (casuesed.c) (cont’d)


Download ppt "© 2010 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Chapter 15: Multiprocessing Using Processes and Threads Problem Solving."

Similar presentations


Ads by Google