elementos de una tienda online gijon - roman garcia (director demini madrid)
Upload: aecem-asociacion-espanola-de-comercio-electronico-y-marketing-relacional
Post on 13-Apr-2017
550 views
TRANSCRIPT
![Page 1: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/1.jpg)
1
Context SwitchingGroup 1 – Presented by David Calhoun
Question 3.7: What are the actions taken by the kernel to context-switch between processes?
![Page 2: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/2.jpg)
2
Multitasking (real life)
(Look carefully...)
![Page 3: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/3.jpg)
3
Multitasking (OS)
(process scheduler)
![Page 4: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/4.jpg)
4
What is a context switch?
-process of suspending and resuming processes
-triggered by interrupt (for instance, an IO interrupt), preemptive multitasking, or as part of
user/kernel mode switching
-process context represented by the Process Control Block (PCB)
![Page 5: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/5.jpg)
5
Process Control Block (PCB)
The PCB is "the manifestation of a process in an operating system"
Harvey M. Deitel (1984) [1982]. An introduction to operating systems
![Page 6: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/6.jpg)
6
What's in the PCB?
![Page 7: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/7.jpg)
7
PCB components
-PCB implementations differ, but generally contain:
Process ID (PID) Process state (fig 3.2) (ready, running, waiting,
etc) Registers (including Program Counter) Memory management info (address space of
the process)More complete list: p. 104
![Page 8: Elementos de una tienda online Gijon - Roman Garcia (Director Demini Madrid)](https://reader035.vdocuments.co/reader035/viewer/2022062902/58eeae0e1a28ab7e0f8b4583/html5/thumbnails/8.jpg)
8
Overhead
Switching contextsinvolves a lot ofoverhead (typically afew milliseconds).
Think of the overheadinvolved in multitaskingin real life.