WGU C191 MODULE 2 Latest Update Graded A
WGU C191 MODULE 2 Latest Update Graded A Temporary data such as function parameters, return addresses, and local variables. What does a stack contain? 1. The parent continues to execute concurrently with its children. 2. The parent waits until some or all of its children have terminated. 3. The child process is a duplicate of the parent process (it has the same program and data as the parent). 4. The child process has a new program loaded into it. When a parent creates a child process what are the possibilities? Context Switch The kernel saves the context of the old process in its PCB and loads the saved context of the new process scheduled to run Task control block What is another name for the PCB (process control block)? Process Scheduling Queues - job queue - all processes in a system -ready queue - all process in main memory ready and waiting to execute -device queues - set of processes waiting for i/o device - penguins play w/ cool arctic melted ice Process state, Program counter, CPU registers, Accounting information, memory-management info, and I/O status information. What does the PCB(info associated with each process) contain? I/O-bound process spends more time doing I/O than computations, many short CPU bursts CPU-bound process spends more time doing computations; few very long CPU bursts process creation - address space -child duplicate of parent -child has a program loaded into it -UNIX examples- fork system creates new process -exec system call used after a fork to replace the process' memory space with a new program Nonpreemtive kernel When a process switches from a running state to the waiting state or when a process terminates. Runs until exits kernel mode, blocks, or voluntarily yields CPU. Essentially free of race conditions in kernel mode. Preemptive kernel Allows interruption of a process by another process when running in kernel mode Cooperative Synonymous with non - preemptive scheduling Dispatcher The module that gives control of the CPU to the process selected by the short-term scheduler Throughput The number of processes that are completed per time unit PCS (process-contention scope) The scheme by which a many-to-one or many-to-many system schedules user-threads SCS(System contention scope) Decides which kernel level thread to schedule onto a CPU. Process A program in execution Thread Sometimes used synonymously with process, a single sequence of executing code. It consists of a thread ID, program counter, register set, and a stack. Heap Memory that is dynamically allocated during a process run time Descriptions of the changes in an executing process What is a state? Name the process states. New, Running, Waiting, Ready, Terminated. PCB(process control block) How an operating system represents a process. Serves as a repository for any info that may vary from process to process. Swapping The scheme of moving a process in and out of memory Cascading Termination The technique of terminating all child processes when a parent process terminates.
Información del documento
- Subido en
- 6 de julio de 2023
- Número de páginas
- 29
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas