所需积分/C币:9 2015-05-04 11:53:49 9.13MB PDF
收藏 收藏

Title: Operating System Design: The Xinu Approach 2nd Edition Author: Douglas Comer Length: 701 pages Edition: 2 Language: English Publisher: Chapman and Hall CRC Publication Date: 2015 02 18 ISBN 10: 1498712436 ISBN 13: 9781498712439 An Update of the Most Practical A to Z Operating System Book Widely lauded for avoiding the typical black box approach found in other operating system textbooks the first edition of this bestselling book taught readers how an operating system works and explained how to build it from the ground up Continuing to follow a logical pattern for system design Operating System Design: The Xinu Approach Second Edition removes the mystery from operating system design and consolidates the body of material into a systematic discipline It presents a hierarchical design paradigm that organizes major operating system components in an orderly understandable manner The book guides readers through the construction of a conventional process based operating system using practical straightforward primitives It gives the implementation details of one set of primitives usually the most popular set Once readers understand how primitives can be implemented on conventional hardware they can then easily implement alternative versions The text begins with a bare machine and proceeds step by step through the design and implementation of Xinu which is a small elegant operating system that supports dynamic process creation dynamic memory allocation network communication local and remote file systems a shell and device independent I O functions The Xinu code runs on many hardware platforms This second edition has been completely rewritten to contrast operating systems for RISC and CISC processors Encouraging hands on experimentation the book provides updated code throughout and examples for two low cost experimenter boards: BeagleBone Black from ARM and Galileo from Intel Table of Contents Chapter 1 Introduction And Overview Chapter 2
Operating System Design The Xinu Approach Second edition Douglas Comer (CRC) CRC Press Taylor Francis Group Boca Raton London New York CRC Press is an imprint of the Taylor Francis Group an informa business ChaPman hall book UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd Linux is a registered trade mark of Linus Torvalds. In the United States, Linux is a trademark registered to Linus Torvalds. Microsoft Windows is a trademark of Microsoft C poration. Microsoft is a registered trademark of Microsoft Corporation. Solaris is a trademark of Sun Microsystems, Incorporated. MIPS is a registered trademark of MIPS Technologies, Inc. IBM is a registered trademark of International Business Machines. Mac is a trademark of Apple, Inc. Intel is a registered trademark of Intel Corporation. Galileo is a registered trademark of Intel Corporation. mini-PCI Express is a trademark of Intel Corporation ARM is a registered trademark of ARM Limited. Other trademarks are the property of their respective owners CRC Press Taylor Francis Group 000 Broken Sound Parkway nw, Suite 300 Boca raton FL 33487-274.2 2015 by Taylor Francis Group, LLC CRC Press is an imprint of Taylor Francis Group, an Informa business No claim to original U.S. Government works ersion date: 20141204 International Standard Book Number-13: 978-1-4987-1244-6(eBook- PDF) This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and nformation, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any uture reprint Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or etrieval system, without written permission from the publishers Forpermissiontophotocopyorusematerialelectronicallyfromthisworkpleaseaccesswww.copyright.com(http://www.copyright.com/)orcontact the Copyright Clearance Center, Inc( CCC), 222 Rosewood Drive, Danvers, MA01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For organizations that have been granted a photocopy license by the CCC, a separate system of payment has been arranged Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identification and explanation without intent to infringe Visit the taylor francis Web site at http://www.taylorandfrancis.com and the crc Press Web site at http://www.crcpress.com To my wife, Chris, and our children, Sharon and Scott Contents Preface XIX About the Author XXII Chapter 1 Introduction And Overview 1.1 Operating Systems 3 1.2 Approach Used In The Text 5 1.3 A Hierarchical Design 5 1.4 The Xinu Operating System 7 1.5 What An Operating System Is Not 8 1.6 An Operating System Viewed From The Outside 9 1.7 Remainder of The Text 10 1.8 Perspective 1.9 Summary 11 Chapter 2 Concurrent Execution And Operating System Services 15 2.1 Introduction 15 2. 2 Programming Models For Multiple Activities 16 2.3 Operating System Services 17 2.4 Concurrent Processing Concepts And Terminology 17 2.5 Distinction Belween Sequential And Concurrent Programs 19 2.6 Multiple processes sharing A Single Piece of Code 21 2.7 Process Exit And process Termination 23 2.8 Shared Memory, Race Conditions, And Synchronization 24 2.9 Semaphores And Mutual Exclusion 28 2.10 Type Names Used In Xinu 30 2. 11 Operating System Debugging With Kputc And Kprintf 31 2.12 Perspective 32 2.13 Summary 32 Contents Chapter 3 An Overview Of The Hardware And Runtime Environment 37 3.1 Introduction 37 3.2 Physical And Logical Organizations Of A Platform 38 3.3 Instruction Sets 38 3.4 General-purpose Registers 39 3.5 /0 Buses And The Fetch-Store Paradigm 41 3.6 Direct Memory Access 42 3.7 The Bus Address space 42 3.8 Bus Startup And Configuration 43 3.9 Calling Conventions And The Runtime Stack 44 3.10 Interrupts And Interrupt Processing 47 3.7 Vectored Interrupts 48 3.12 Exception Vectors And Exception Processing 48 3.13 Clock Hardware 49 3. 4 Serial communication 49 3.15 Polled vs II /O49 3. 16 Storage Layout 50 3.17 Memory Protection 51 3.18 Hardware Details And A system On Chip architecture 51 3.19 Perspective 52 3.20 Hardware References 52 Chapter 4 List And Queue Manipulation 57 4. Introduction 57 4.2 A Unified Structure For Linked Lists Of Processes 58 4.3 A Compact List Data Structure 59 4.5 Inline queue Manipulation Functions 6 e 61 4.4 Implementation Of The queue data structur 4.6 Basic Functions To Extract A Process From a List 63 4.7 FIFO Queue Manipulation 65 4. 8 Manipulation Of Priority queues 68 4.9 List Initialization 70 4.10 Perspective 71 4.11 Summary 7 Chapter 5 Scheduling And Context Switching 5.1 Introduction 75 he process table 76 5.3 Process states 79 5.4 Ready And Current Stales 80 Contents 5.5 A Scheduling Policy 80 5.6 Implementation Of Scheduling 81 5.7 Deferred Rescheduling 85 5.8 Implementation Of Context Switching 85 5.9 State Saved In Memory 86 5.10 Context Switch Operation 87 5./ An Address At Which to Restart A Process 91 5.12 Concurrent Execution And A Null Process 92 5.13 Making A Process Ready And The Scheduling Invariant 93 5.14 Other Process Scheduling algorithms 94 5.15 Perspective 95 5.10 Summary 95 Chapter 6 More Process Management 99 6. Introduction 99 6.2 Process Suspension And Resumption 99 6.3 Self-suspension And Information Hiding 100 6. 4 The Concept Of A System Call 101 6.5 Interrupt Control with Disable and restore 103 6.0 A System Call Template 104 6.7 System Call Return Values SySERR And OK 10.5 6.8 Implementation Of Suspend 105 6.9 Suspending The Current Process 107 6.10 The value returned By Suspend 107 6. Process Termination And Process exit 108 6.12 Process Creation 111 6.13 Other Process Manager Functions 115 6.14 Summary 117 Chapter 7 Coordination Of Concurrent Processes 7.1r 123 7.2 The need for synchronization 123 7.3 A Conceptual View Of Counting Semaphores 125 7.4 Avoidance Of Busy Waiting 125 7.5 Semaphore Policy And Process Selection 126 7.6 The Waiting State 127 7.7 Semaphore Data Structures 128 7. 8 The Wait System call 129 7.9 The Signal System Call 130 7.10 Static And Dynamic Semaphore Allocation 131 7. 1 Example Implemenlation Or Dynamic Semaphores 132

试读 127P Operating.System.Design.The.Xinu.Approach.2nd.Edition
立即下载 低至0.43元/次 身份认证VIP会员低至7折
zzzzzzzggg 有借鉴作用!
Eri_ler 很不错的书,教你如何写出一个操作系统。
gaobangbang 不错的资源 好用
pfw109 通俗易懂,代码也简单明了
meou4 The book you should read, if you want to implement an OS.
zhangxin03 值得一读,通俗易懂,代码也简单明了
stealfire 年初就知道出第二版了。一直在等待pdf,嘿嘿,感谢楼主!
  • 至尊王者

关注 私信
Operating.System.Design.The.Xinu.Approach.2nd.Edition 9积分/C币 立即下载

试读结束, 可继续阅读

9积分/C币 立即下载