{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec03 - Last Class OS and Computer Architecture System bus...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science Lecture 3, page 1 CS377: Operating Systems Last Class: OS and Computer Architecture CPU, memory, I/O devices, network card, system bus Network card System bus Computer Science Lecture 3, page 2 CS377: Operating Systems Last Class: OS and Computer Architecture OS Service Hardware Support Protection Kernel/user mode, protected instructions, base/limit registers Interrupts Interrupt vectors System calls Trap instructions and trap vectors I/O Interrupts and memory mapping Scheduling, error recovery, accounting Timer Syncronization Atomic instructions Virtual memory Translation look-aside buffers
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Computer Science Lecture 3, page 3 CS377: Operating Systems Today: OS Structures & Services Introduce the organization and components in an OS. OS Components Processes Synchronization Memory & Secondary Storage Management File Systems I/O Systems Distributed Systems Four example OS organizations Monolithic kernel Layered architecture Microkernel Modular Computer Science Lecture 3, page 4 CS377: Operating Systems From the Architecture to the OS to the User From the Architecture to the OS to the User: Architectural resources, OS management, and User Abstractions. Hardware abstraction Example OS Services User abstraction Processor Process management, Scheduling, Traps, protection, accounting, synchronization Process Memory Management, Protection, virtual memory Address spaces I/O devices Concurrency with CPU, Interrupt handling Terminal, mouse, printer, system calls File System File management, Persistence Files Distributed systems Networking, security, distributed file system Remote procedure calls, network file system
Background image of page 2
Computer Science Lecture 3, page 5 CS377: Operating Systems Processes The OS manages a variety of activities: User programs Batch jobs and command scripts System programs: printers, spoolers, name servers, file servers, network listeners, etc. Each of these activities is encapsulated in a process. A process includes the execution context (PC, registers, VM, resources, etc.) and all the other information the activity needs to run. A process is not a program . A process is one instance of a program in execution. Many processes can be running the same program. Processes are independent entities. Computer Science Lecture 3, page 6 CS377: Operating Systems OS and Processes The OS creates, deletes, suspends, and resumes processes. The OS schedules and manages processes. The OS manages inter-process communication and synchronization . The OS allocates resources to processes.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Computer Science Lecture 3, page 7 CS377: Operating Systems Synchronization Example: Banking transactions Cooperating processes on a single account: ATM machine transaction, balance computation, Monthly interest computation and addition.
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}