[Operating System] {Udacity} P2L1: Processes and Process Management

V0-Vmax => max size of the process address space

heap and data may not be contiguous

stack: last in first out

any access of the process to x will access the correct physical location where x is stored.

not all processes requires the entire address space from V0 to Vmax

There may be portions of this address space that are not allocated.

Also we may simply not have enough physical memory to store all this state.

the operating system must maintain information where these virtual addresses actually are in memory, on disk, since it maintains the mapping between the virtual addresses and the physical location of every part of the process address space.

https://blog.csdn.net/macrossdzh/article/details/5954763

PC: at any point of time, cpu needs to know where in the instruction sequence the process currently is

regs: pc is also maintaining the pc by part of regs

MM: stack pointer/top of the stack of the process

and other information

OS maintains the Process Control Block, including the information above

Process Control Block is a data structure that OS maintains for every one of the processes.

cpu has a dedicated register, used to track the current program counter for the currently executing process.

PC register will get automatically updated by the cpu on every new instruction

root processes:

once the initial boot process is done, and the OS is loaded on the machine, it will create some number of initial processes.

and then when the user types in commands, like list or emacsm, then the new processes get spawned from that shell parent process.

Being efficient means that it‘s important to have both efficient designs as well as sufficient implementations of the various algorithms that are used, for instance in scheduling.

As well as efficient data structure that are used to representing things like the waitinig process, or any information that‘s relevant to making scheduling decisions.

information => priority, history (how long ran in the past)

Because the OS is out of the way, it no longer supports fixed and well-defined APIs how this particular shared memory region is used.

For that reason, the usage sometimes becomes more error prone, or developers simply

原文地址:https://www.cnblogs.com/ecoflex/p/10889085.html

时间: 2024-11-11 21:36:33

[Operating System] {Udacity} P2L1: Processes and Process Management的相关文章

Operating system coordinated thermal management

A processor's performance state may be adjusted based on processor temperature. On transitions to a lower performance state due to the processor getting hotter, the processor's frequency is reduced prior to reducing the processor voltage. Thus, the p

Operating system management of address-translation-related data structures and hardware lookasides

An approach is provided in a hypervised computer system where a page table request is at an operating system running in the hypervised computer system. The operating system determines whether the page table request requires the hypervisor to process.

《modern operating system》 chapter 3 MEMORY MANAGEMENT 笔记

MEMORY MANAGEMENT The part of the operating system that manages (part of) the memory hierarchy is called thememory manager 这章感觉有点多...80 多页..看完都看了两天多,做笔记就更有点不想...有点懒了..但是要坚持下去,可以自己较劲 对于内存的抽象,最简单的抽象就是...没有抽象 和第一次看不一样,把summary放在最前面,对整个mamory management的

Modern Operating System --- Power Management (OS Issues)

The operating system plays a key role in energy management. It controls all the devices, so it must decide what to shutdown and when to shut it down. If it shuts down a device and that device is needed again quickly, there may be an annoying delay wh

Modern Operating System --- Power Management (Hardware Issues)

The general approach most computer vendors take to battery conservation is to design the CPU, memory, and I/O devices to have multiple states: on, sleeping, hiberating, and off. To use the device, it must be on. When the device will not be needed for

Operating System: Three Easy Pieces --- Process (Note)

1. How can the operating system provide the illusion of a nearly-endless supply of said CPUs? The OS creates this illusion by virtualizing the CPU. The basic technique, known as the time- sharing the CPU, allows users to run as many concurrent proces

Modern Operating System --- Power Management (Hard Disk)

Another major villain is the hard disk. It takes substantial energy to keep it spinning at high speed, even if there are no accesses. Many conputers, especially notebooks, spin the disk down after a certain number of seconds or minutes of inactivity.

General-Purpose Operating System Protection Profile

1 Protection Profile Introduction ? This document defines the security functionality expected to be provided by a general-purpose operating system capable of operating in a networked environment. It also provides a set of assurance components that de

PatentTips - Method for guest operating system integrity validation

BACKGROUND The embodiments relate to guest operating system integrity validation, and more particularly to guest operating system integrity validation through a virtual machine monitor (VMM) hypervisor trap. Today's computers make use of various memo