Computer-System Architecture - Massey University

1y ago
4 Views
1 Downloads
1,004.07 KB
15 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Cannon Runnels
Transcription

Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection General System ArchitectureOperating System Concepts2.1Silberschatz, Galvin and Gagne 2002Computer-System ArchitectureOperating System Concepts2.2Silberschatz, Galvin and Gagne 2002

Computer-System Operation I/O devices and the CPU can execute concurrently. Each device controller is in charge of a particular device type.Each device controller has a local buffer.CPU moves data from/to main memory to/from localbuffersI/O is from the device to local buffer of controller.Device controller informs CPU that it has finished itsoperation by causing an interrupt.Operating System Concepts2.3Silberschatz, Galvin and Gagne 2002Common Functions of Interrupts Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains theaddresses of all the service routines.Interrupt architecture must save the address of theinterrupted instruction.Incoming interrupts are disabled while another interrupt isbeing processed to prevent a lost interrupt.A trap is a software-generated interrupt caused either byan error or a user request.An operating system is interrupt driven.Operating System Concepts2.4Silberschatz, Galvin and Gagne 2002

Interrupt Handling The operating system preserves the state of the CPU bystoring registers and the program counter. Determines which type of interrupt has occurred: polling vectored interrupt system Separate segments of code determine what action shouldbe taken for each type of interruptOperating System Concepts2.5Silberschatz, Galvin and Gagne 2002Interrupt Time Line For a Single Process Doing OutputOperating System Concepts2.6Silberschatz, Galvin and Gagne 2002

I/O Structure After I/O starts, control returns to user program only uponI/O completion. Wait instruction idles the CPU until the next interrupt Wait loop (contention for memory access). At most one I/O request is outstanding at a time, nosimultaneous I/O processing. After I/O starts, control returns to user program withoutwaiting for I/O completion. System call – request to the operating system to allow userto wait for I/O completion. Device-status table contains entry for each I/O deviceindicating its type, address, and state. Operating system indexes into I/O device table to determinedevice status and to modify table entry to include interrupt.Operating System Concepts2.7Silberschatz, Galvin and Gagne 2002Two I/O MethodsSynchronousOperating System ConceptsAsynchronous2.8Silberschatz, Galvin and Gagne 2002

Device-Status TableOperating System Concepts2.9Silberschatz, Galvin and Gagne 2002Direct Memory Access Structure Used for high-speed I/O devices able to transmitinformation at close to memory speeds. Device controller transfers blocks of data from bufferstorage directly to main memory without CPUintervention. Only on interrupt is generated per block, rather than theone interrupt per byte.Operating System Concepts2.10Silberschatz, Galvin and Gagne 2002

Storage Structure Main memory – only large storage media that the CPUcan access directly. Secondary storage – extension of main memory thatprovides large nonvolatile storage capacity. Magnetic disks – rigid metal or glass platters covered withmagnetic recording material Disk surface is logically divided into tracks, which aresubdivided into sectors. The disk controller determines the logical interactionbetween the device and the computer.Operating System Concepts2.11Silberschatz, Galvin and Gagne 2002Moving-Head Disk MechanismOperating System Concepts2.12Silberschatz, Galvin and Gagne 2002

Storage Hierarchy Storage systems organized in hierarchy. Speed Cost Volatility Caching – copying information into faster storage system;main memory can be viewed as a last cache forsecondary storage.Operating System Concepts2.13Silberschatz, Galvin and Gagne 2002Storage-Device HierarchyOperating System Concepts2.14Silberschatz, Galvin and Gagne 2002

Caching Use of high-speed memory to hold recently-accesseddata. Requires a cache management policy. Caching introduces another level in storage hierarchy.This requires data that is simultaneously stored in morethan one level to be consistent.Operating System Concepts2.15Silberschatz, Galvin and Gagne 2002Migration of A From Disk to RegisterOperating System Concepts2.16Silberschatz, Galvin and Gagne 2002

Hardware Protection Dual-Mode Operation I/O Protection Memory Protection CPU ProtectionOperating System Concepts2.17Silberschatz, Galvin and Gagne 2002Dual-Mode Operation Sharing system resources requires operating system toensure that an incorrect program cannot cause otherprograms to execute incorrectly. Provide hardware support to differentiate between at leasttwo modes of operations.1. User mode – execution done on behalf of a user.2. Monitor mode (also kernel mode or system mode) –execution done on behalf of operating system.Operating System Concepts2.18Silberschatz, Galvin and Gagne 2002

Dual-Mode Operation (Cont.) Mode bit added to computer hardware to indicate thecurrent mode: monitor (0) or user (1). When an interrupt or fault occurs hardware switches tomonitor mode.Interrupt/faultmonitoruserset user modePrivileged instructions can be issued only in monitor mode.Operating System Concepts2.19Silberschatz, Galvin and Gagne 2002I/O Protection All I/O instructions are privileged instructions. Must ensure that a user program could never gain controlof the computer in monitor mode (I.e., a user programthat, as part of its execution, stores a new address in theinterrupt vector).Operating System Concepts2.20Silberschatz, Galvin and Gagne 2002

Use of A System Call to Perform I/OOperating System Concepts2.21Silberschatz, Galvin and Gagne 2002Memory Protection Must provide memory protection at least for the interruptvector and the interrupt service routines. In order to have memory protection, add two registersthat determine the range of legal addresses a programmay access: Base register – holds the smallest legal physical memoryaddress. Limit register – contains the size of the range Memory outside the defined range is protected.Operating System Concepts2.22Silberschatz, Galvin and Gagne 2002

Use of A Base and Limit RegisterOperating System Concepts2.23Silberschatz, Galvin and Gagne 2002Hardware Address ProtectionOperating System Concepts2.24Silberschatz, Galvin and Gagne 2002

Hardware Protection When executing in monitor mode, the operating systemhas unrestricted access to both monitor and user’smemory. The load instructions for the base and limit registers areprivileged instructions.Operating System Concepts2.25Silberschatz, Galvin and Gagne 2002CPU Protection Timer – interrupts computer after specified period toensure operating system maintains control. Timer is decremented every clock tick. When timer reaches the value 0, an interrupt occurs. Timer commonly used to implement time sharing. Time also used to compute the current time. Load-timer is a privileged instruction.Operating System Concepts2.26Silberschatz, Galvin and Gagne 2002

Network Structure Local Area Networks (LAN) Wide Area Networks (WAN)Operating System Concepts2.27Silberschatz, Galvin and Gagne 2002Local Area Network StructureOperating System Concepts2.28Silberschatz, Galvin and Gagne 2002

Wide Area Network StructureOperating System Concepts2.29Silberschatz, Galvin and Gagne 2002

Computer System OperationI/O StructureStorage StructureStorage HierarchyHardware ProtectionGeneral System Architecture 2.1 Computer-System Architecture Computer-System Operation I/O devices and the CPU can execute concurrently.Each device controller is in charge of a particular devicetype. Each device controller has a local buffer.

Related Documents:

Massey Harris Mh 101 Factory Service Work Shop Manual Download.pdf massey-harris model 101 - wikipedia the massey-harris model 101 was a tractor built by massey-harris (later massey ferguson) from 1938-1946. developed under the guidance of james s. duncan, who gambled corporate losses would drop and won,

Massey Ferguson 9545 Combine with Grain and Corn Headers Spec Cast SCT641 Massey Ferguson 8730 US Flag Spec Cast SCT643 Massey Ferguson 8730 SCT639 Desert Sand Spec Cast Massey Ferguson 8730 SCT642 Massey Ferguson 8730 Canada Flag Spec Cast SCT565 Massey Ferguson 8660 SC31655 1:64

What is Computer Architecture? “Computer Architecture is the science and art of selecting and interconnecting hardware components to create computers that meet functional, performance and cost goals.” - WWW Computer Architecture Page An analogy to architecture of File Size: 1MBPage Count: 12Explore further(PDF) Lecture Notes on Computer Architecturewww.researchgate.netComputer Architecture - an overview ScienceDirect Topicswww.sciencedirect.comWhat is Computer Architecture? - Definition from Techopediawww.techopedia.com1. An Introduction to Computer Architecture - Designing .www.oreilly.comWhat is Computer Architecture? - University of Washingtoncourses.cs.washington.eduRecommended to you b

F40, TO35, 202, 204, 35, 50 A-SMMF27 Models: Massey-Fer guson Shop Manual 135, 150, 165 A-SMMF36 Models: Massey-Fer guson Shop Manual 285 A-SMMF41 Models: Massey-Fer guson Shop Manual 670, 690, 698 A-SMMF42 Models: Massey-Fer guson Shop Manual 230, 235, 240, 245, 250 A-SMMF43 Models: Massey-Fer guson Shop Manual 255, 265, 270, 275, 290 A-SMMF44 .

uh2697 toy-massey 135 w 4 uh2698 mf 135 no cab 6 uh2700 toy-ferguson dd 3 uh2823 my pony 1 uh2906 mf 175 4 uh2915 mf 65 5 uh2921 mf tea 230 ac 3 uh2973 hesston baler 4 uh2984 1/16th mf 50 1 uh2986 ferguson fe 35 2 uh4021 mf 7499 silver 4 uh4036 ferguson to 1 uh4050 massey 230 2 uh4118 ferguson ff 2 uh4141 massey fer 35 2 uh4143 massey mh 50 1

University Year Name of qualification Abbreviation Massey 1995 Bachelor of Applied Economics (Honours) BApplEcon(Hons) Massey 1995 Postgraduate Diploma in Education PGDipEd Massey 1995 Postgraduate Diploma in Transport Planning DipTranspPl Massey 1995 Diploma in Information and Mathematical Sciences DipInfoMathSc

October 2015 Massey GC1705 Series Deluxe ROPS Cab Operator Manual Massey Ferguson GC1705 Deluxe Cab ** Shown with optional equipment . Please note: Cab is shown with optional accessories. Massey GC1705 Cab This ROPS cab is designed and built to fit the Masey Ferguson GC1705 and GC1715 t

Paper Name: Computer Organization and Architecture SYLLABUS 1. Introduction to Computers Basic of Computer, Von Neumann Architecture, Generation of Computer, . “Computer System Architecture”, John. P. Hayes. 2. “Computer Architecture and parallel Processing “, Hwang K. Briggs. 3. “Computer System Architecture”, M.Morris Mano.