Lec03 - Computer Science Lecture 3, page 1 Computer Science...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Computer Science Lecture 3, page 1 Computer Science 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 Computer Science 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 Computer Science Lecture 3, page 3 Computer Science 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 Computer Science 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 Computer Science Lecture 3, page 5 Computer Science 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 Computer Science 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. Computer Science Lecture 3, page 7 Computer Science CS377: Operating Systems Synchronization Example: Banking transactions Cooperating processes on a single account: ATM machine transaction, balance computation, Monthly interest computation and addition....
View Full Document

Page1 / 14

Lec03 - Computer Science Lecture 3, page 1 Computer Science...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online