书签 分享 收藏 举报 版权申诉 / 38
上传文档赚钱

类型(大学课件)-电机资讯工程实习-个人电脑系统(英文版).ppt

  • 上传人(卖家):三亚风情
  • 文档编号:3522429
  • 上传时间:2022-09-11
  • 格式:PPT
  • 页数:38
  • 大小:544KB
  • 【下载声明】
    1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
    2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
    3. 本页资料《(大学课件)-电机资讯工程实习-个人电脑系统(英文版).ppt》由用户(三亚风情)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
    4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
    5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    大学课件 大学 课件 电机 资讯 工程 实习 个人电脑 系统 英文
    资源描述:

    1、1What is an operating system?DefinitionAn operating system is the“permanent”software that controls/abstracts hardwareUser applications can thus be simpler and device-independentphysical machine interfaceUser ApplicationsOperating SystemArchitecturevirtual machine interface2What is an operating syste

    2、m?Definition(cont)Manages resources and processes to support different user applicationsProvides Applications Programming Interface(API)for user applicationsUser ApplicationOperating SystemArchitectureUser Application3Modern operating systemsx86 platform Linux WindowsMac platform Mac OSSun Solaris&U

    3、nix(Sun workstations)IBM AIX(mainframes)Embedded systems(special-purpose OS)Palm,PocketPC,etc Xbox,etc4Linus Torvalds1991,Finland,Linux Project1992,Linux Kernel 0.02 Bash v1.08 GCC v1.401997,Moves to Transmeta1998,Linux Kernel v2.22001,Linux Kernel v2.4Pronunciation:“Linn-ucks”5Windows 2000&XP1989:1

    4、0 developers left DEC VMS team and joined Microsoft Windows NT 1.01996:Windows NT 4.01999:Windows 20002001:Windows XP2002:Microsoft.Net Server6Linux vs.Windows NTLinux is kernel only,free and open sourceWindows is full-loaded OS and pricyLinux requires minimum HW,Windows notWeb server(Win2K+SWC)beat

    5、s(Linux+TUX)File server&printer server Windows supports a wider range of HW Linux has more stable drivers7Operating System Interfacesdocin/sundae_meng8Software&hardware layerUser ProgramExecutable BinaryCompilerLinkerSystem libraryArchitectureusercompilerOS interfaceOSHardwaredevice driversOperating

    6、 Systemkerneluser mode9Device DriverDevice driver的唯一目的就是要將所有的硬體隱藏.他應該是整套軟體中唯一能和硬體溝通的窗口.他能直接讀取或寫入特定裝置控制及狀態暫存器,如果裝置發生中斷,那ISR也要整合到裝置驅動程式.10System service call(monitor)C Programs:main()/call printf,provided/by the C library,to/print on the screenprintf(“Hello World!”);Borland C library:Borland C library

    7、:Int Int printf()printf()/call SysOutputString,/call SysOutputString,/provided by NT/provided by NT/system library,to/system library,to/print on the screen/print on the screenSysOutputString();SysOutputString();NT library:NT library:Void Void SysOutputStringSysOutputString()()/call NtOutputString,th

    8、at in turn will call/call NtOutputString,that in turn will call/video card driver to output strings to/video card driver to output strings to/the screen/the screenNtOutputString();NtOutputString();11System service call(disk)C Programs:main()/call CreateFile/by the C library,to/create a file on diskC

    9、reateFile(“a.txt”)Borland C library:Borland C library:Int CreateFile()/call NtCreateFile,/provided by NT to/create a fileNtCreateFile();NT library:NT library:Void NtCreateFile()/call NtInternalCreateFile,that in turn will /call the file system driver and the disk /driver to create a file on a disk N

    10、tInternalCreateFile();12System service calls(network)C Programs:main()so=createsocket();send(so,“text”);close(so);Borland C library:Borland C library:int createsocket()NtCreateSocket();int send()NtSocketSend();NT library:NT library:Void NtCreateSocket()NtAfdCreateSocket();1314Virtual computer concep

    11、tC+compilerFORTRAN compilerC compilerJava compilerAssemblerOperatingSystemCommandinterpreterLISP interpreterOperating systemMacroinstruction interpreterBare machineVirtual CComputerVirtual C+Computer15Importance of operating systemSystem API are the only interface between user applications and hardw

    12、are API are designed for general-purpose,not performance driven(work applications)OS code cannot allow any bug Any break(e.g.invalid access)causes rebootThe owner of OS technology controls the software industry16What is Embedded System?是電腦軟體與硬體的綜合體,亦可涵蓋機械或其他附屬裝置;整個綜合體設計的目的,在於滿足某種特殊功能.例如:PDA,遊樂器,衛星導航

    13、系統,流程管理器 等.docin/sundae_meng17Embedded system architecture3-layered device Palm,PocketPCUser ApplicationsEmbedded OSHardware2-layered device XBoxHardwareApplication18General-purpose&embedded OSGeneral-purpose Embedded OSExamplesLinux,WindowsWinCE,Palm OSHardwareGeneral-purpose Special deviceOS code

    14、sizeLargeSmallStability req.StrongWeakDevelop.costHugeMedium19Operating system conceptsdocin/sundae_meng20Process&ThreadHow do different applications run on the same machine at the same time without interfering each other?Protection between processes Protection between a process and the OSProcess:an

    15、 execution of a program,consisting of a virtual address space,one or more threads,and some OS states.21Virtual memory(address space)0232-1virtual address space(4GB)page 0page 1page 2page 220vap0vap1xpage tablephysical memory(16MB)pp 0pp 1pp 2pp Npaging filepp 212x22Virtual memory(address space)0232-

    16、1virtual address space(4GB)page 0page 1page 2page 220vap0vap1xpage tablephysical memory(16MB)pp 0pp 1pp 2pp Npaging filepp 21223Memory managerphysical memorypp 0pp 1pp 2pp Npaging filepp 212process VAprocess VAPTPT24Memory manager physical memorypp 0pp 1pp 2pp Npaging filepp 212process VAprocess VAP

    17、TPT25Memory manager(w/constraint)physical memorypp 0pp 1pp 2pp Npaging filepp 212process VAprocess VAPTPTxmemory manager26Protectiondual mode operationCan application modify its own page table?If it could,could get access to all physical memory.Dual Mode Kernel/protected model:no restriction,can tou

    18、ch any physical memory page User mode:where you program runs,can only touch part of the virtual address spaceApplications can enter the kernel mode through systems calls(traps)27Mode change:system call trap1.System call traps to the kernel(kernel mode)2.Kernel determines service routine required3.Ke

    19、rnel services the call.4.Control is returned to user program(user mode)28ThreadA process starts with one thread(main thread),and can initialize more threads by CreateThread()callsA thread represents an execution stream of instructions and its CPU register contextA thread is the unit used in the sche

    20、dulerKill a process kill its all threads29SchedulerA component in OS that decides which thread in the thread pool gets the CPUPriority-based schedulerContext switchnew threadschedulerreadyrunningwaitingterminatingthreadssignalevents30SynchronizationAll threads in the same process share all global da

    21、taSynchronization among these threads is necessary to maintain data integrityResource lock is commonly used to guarantee thread mutual exclusive abuse of such locks decreases scalability ignorance of such locks decreases stabilityDeadlock issues31File SystemsA hard disk is just a raw media storageA

    22、hard disk device driver allows OS to communicate with the hardwareBut,it is the responsibility of the OS to organize disk sectors/tracks for storing files such component is called the file systemE.g.A hard disk that stores NTFS information cannot be read with the FAT32 driver example:paper with Mose

    23、s code32Operating Systems and System SoftwareExample:web server softwaredocin/sundae_meng33User-mode web server architectureWeb ServerCMweb cachenetwork cardTCPIPUser ModeKernel ModeI/O moduleSocketSystem CacheFileSys34User-mode web server commonsUser-mode application architecture e.g.Microsoft Inte

    24、rnet Information Server(IIS),Netscape Enterprise Server,Apache HTTP Server,etc.Dependent on generally system APIStand-alone web content cache limited by virtual address spaceTime-to-live cache replacement algorithmMemory-less dynamic code execution35SWC web server architectureUser ModeKernel ModeTCP

    25、IP-NTFSCMweb cachenetwork card+System CacheSWCmissI/O ModuleTWC.LIBUser CodeVAPAhit36SPECWEB99 Performance*estimated scaling data37Kernel vs.user-based web serverIncrease peak capacity by five timesWeb cache size be limited by physical memory sizeWeb cache be shared by both static&dynamic web requestsRemove I/O overhead and Socket creationFast TCPIP data transmission38Summary#personsmanyfew skillseasydifficultcontrolsmalllargerewardlowhighAppsEOSA.D.1492 Columbus discovers America-The new and free land is on your grip!

    展开阅读全文
    提示  163文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:(大学课件)-电机资讯工程实习-个人电脑系统(英文版).ppt
    链接地址:https://www.163wenku.com/p-3522429.html

    Copyright@ 2017-2037 Www.163WenKu.Com  网站版权所有  |  资源地图   
    IPC备案号:蜀ICP备2021032737号  | 川公网安备 51099002000191号


    侵权投诉QQ:3464097650  资料上传QQ:3464097650
       


    【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。

    163文库