1 / 45

Sistem

Sistem. Terdistribusi. Sistem Operasi Terdistribusi. Peran. sistem. operasi. •. Menyediakan abstraksi kontrol sumber. • kontrol sumber. daya fisik bagi user • Manajemen resource • M enyediaka n sistem call terhadap sumber • Dalam bentuk API

yul
Télécharger la présentation

Sistem

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sistem Terdistribusi SistemOperasiTerdistribusi

  2. Peran sistem operasi • Menyediakanabstraksikontrolsumber • kontrolsumber dayafisik bagiuser •Manajemen resource •Menyediakansistemcall terhadapsumber • DalambentukAPI • Win32 api, POSIXapi, Java api, .NET api •JenisOS: –DesktopOS –NetworkOS –MobileOS –DistributedOS daya baik fisik /non fisik OS

  3. OS Tasks i th f • Raise the programming interfacefor resourcestoa moreusefullevel: – Byprovidingabstractions/encapsulationofthebasic resourcessuchas: processes,virtualmemory,files,communicationchannels – Protection oftheresourcesusedbyapplications – Concurrentprocessingtoenableapplicationstocompletetheir workwithminimuminterferencefromotherapplications • Providethe resourcesneededfor (distributed)services andapplicationsto completetheirtask: – Communication-networkaccessprovided – Scheduling-processorsscheduledattherelevantcomputers id

  4. CoreOS functionality Process manager Creation& operationuponprocesses/ programs Communication Communication manager Communicationbetweenthreads / programson same computer Thread manager Memory manager Supervisor Dispatchinginterrupts, system call, trapping

  5. Process address space • Memory’s regions can be shared – kernelcode –libraries – shareddata& shareddata& communication – stack /heap –copy-on-write system Files can be mappedto • Files can be mappedto memory • Virtualmemory system

  6. Copy on Write • Region RA dan RB merupakansharing memori denganteknik copy-onwriteantaraduaproses A dan B Ketika proses B hendak menulis ke share memory, maka akan terjadimemory protection page fault, sehinggaakanmengalokasikan frame baru dari hasil duplikasi frame asli sehingga akan terdapat 2 page frame Data bisa dishare tanpa “merusak” data masing- masing jika ada penulisan/ pengupdate-an • •

  7. Thread Thread=LightweightProcess Thread=satuandasarpenggunaan • • CPU •PembuatanThreaddilakukanoleh: –Kernel Thread– lebihlambat –User Thread – lebihcepat, berbasis API •KerneljugadigunakandalamDistributed OS –Menggunakankonsep multithreading

  8. SingleandMultithreaded Processes

  9. Thread Life Cycles

  10. Client and server with threads

  11. Arsitektur Model Prosesor

  12. Uniprocessor vs Multiprocessors • Uniprocessorhasonly one processorfor OS • Multiprocessor – Memory:couldbesharedorbeprivatetoeachCPU Data is sent by bus-basedmultiprocessor. •

  13. Uniprocessor Operating Systems • An OSacts as a resourcemanager –ManagesCPU, I/Odevices,memory • OSprovidesa virtual interfacethat is easier to use thanhardware OSprovides a that is easier • Structure modelof uniprocessor operating systems,can be: –Monolithic(e.g., MS-DOS, early UNIX) •Onelargekernelthathandleseverything –Micro Kernel •Onlyessentialkernelfunction,otherwiseinuserspace

  14. Microkernelarchitecture •Small kernel:interprocesscoomunication,lowlevel I/O,memory,processmanagement& scheduling •user-levelimplementadditionalfunctionality

  15. Monolithic vs Microkernel

  16. Jenis OS selain Uniprocessor OS

  17. Network OS • Setiaphost menjalankan SistemOperasi untuk mengatur sumber daya yang dimiliki nyatermasukmengaksessumber daya di jaringan • It provides an environment where users areaware ofthe • Userscan accessremoteresources by – loggingintotheremotemachineOR multiplicityofmachines. transferringdatafromtheremotemachinetotheirownmachine – Usersshouldknowwherethe requiredfilesanddirectories are andmountthem. • • Eachmachine could act likea server and a clientat the same • ContohOS:Windows2000danWindowsNT • Contohimplementasi: – NFS(NetworkFileSystem) time. C thOSWid 2000d Wid NT – Samba–implementasiprotokolSMBdiWin&Linux

  18. Network Operating System 1-19

  19. supports NOS middleware Middleware Language support subsystem Language support subsystem OSemulation .... subsystem Microkernel Hardware Hardware Themicrokernelsupportsmiddlewareviasubsystems flexibilityandextensibility •servicescanbeadded,modifiedanddebugged smallkernel •smallkernel->fewerbugs •protectionofservicesandresourcesisstillmaintained

  20. Distributed Operating System D t j k t • Dapat memanajemenkomputer-komputerdanmembuat “mereka”tampaksebagaisinglekomputer • Dapat menjalankanprosesdikomputerlaintanpa mengetahuisiapayangmeresponnya • Managesresourcesina distributedsystem – transparentlytotheuser Looks to the user like a centralizedOS – ButoperatesonmultipleindependentCPUs Providestransparency – Location,migration,concurence,replication,… • • • Presents users with a virtual uniprocessor

  21. DOS infrastructure

  22. Keterangan DOS t k k i •WorkstationatauPC mengeksekusi prosesyangmemerlukaninteraksidari usersepertitext editoratauwindow manager –Spesifictask Processorpool:kumpulanprosesor, tiap • unitnyabiasanyaterdiridariprosesor, memorilokal,dankoneksijaringan. –Tiap prosesor mengerjakan satu buah proses

  23. Distributed OS • Presentsusers (andapplications) with an integrated computing platform that hides the individualcomputers. individual computers • Has control over allof the nodes(computers) in the networkand allocates theirresources to taskswithout user involvement. –Ina distributedOS,the userdoesn't know (orcare) wherehisprogramsarerunning. • Examples: –Amoeba(http://amoebaos.org) –EyeOS(www.eyeos.org) in the network and allocates their resources to

  24. More examples ICloud

  25. More Examples j lil d jolicloud G.HO.ST Glideos

  26. Daftar web OS

  27. DOS: Transparency •LocationTransparency –Users are not the resources aware of the positioning in the system. of T •MigrationTransparency –Resources can move without changing •ReplicationTransparency names / URL / URL –Users should not beawareof the presence of multiple copies of a resource Failure •FailureTransparency –Masking the partial failures in the system

  28. Transparency d... ’d Cont • Performance Transparency –Reconfiguringtheresourcestoimprovethe • ConcurrencyTransparency –Resourcesharingisautomatic • Parallelismtransparency –Activitiescanhappeninparallelwithoutthe • ScalingTransparency Performance performanceofthesystem knowledgeoftheuser.Users seesonlyspeedup. –Allowingthesystemtoexpandinscalewithout disruptingtheactivitiesoftheusers

  29. Distributed Operating Systems 1.14

  30. The differences NOS DOS

  31. What is Amoeba? A b i •Amoebaisadistributedoperating system • • Runsonasimple micro-kernel DevelopedbyAndrew Tanenbaum •Hasusertransparency –The user logs into the systemnot a specific machine –When a programis initiated, the system decides what machine will run it. Th l i h Wh i i i i d h

  32. The History of Amoeba • DevelopedbyAndrewTanenbaumat VrijeUniversiteitinconjunctionwith the CentrumvoorWiskundeenInformatica •Firstprototypewasreleasedin1983 •Thelast official updatewasin1996 • • Othershavedevelopedtheirownversions –FireballAmoebaby FireballSoftware FireballAmoeba Distribution

  33. Goals of Amoeba Th f i l •Therearefourmaingoals –Distribution •Connectingtogethermany machines Parallelism •Allowingindividualjobstousemultiple easily Transparency – CPUs – •Havingthecollectionofcomputeractlikeasingle system Performance –

  34. Key Concepts Micro-kernel • – – – Asimplemicro-kernelis thebasisfor Amoeba Allcomputersinthenetworkrunthiskernel Ithandlesthememorymanagement,I/O, communication,objectprimitive,andbasicprocesses • Remote Procedure Calls (RPC) –Usedfor communicationbetweenclientandserver –Accessed bystubswhicharecreatedby Amoeba InterfaceLanguage

  35. Key Concepts • Threads – Eachprocesshasits ownaddressspaceand containsmultiplethreads – Thesethreadshavetheir ownstack and program t bt h th lbld t d d f th counter, but sharethe globaldataandcodeof the process • FLIP(the protocol) –Fast LocalInternetProtocol FLIP – Developedby AndrewTanenbaum – Designedto optimizethespeedof RPCs

  36. Key Concepts • Objects –The abstract data type used by Amoeba –Each object has a list of operationsthat can be preformed Capability (Protection) • – – Store data in 128 bit value Used to verify that the user has permissionto access the object Capabilitiesareencrypted –

  37. Key Concepts • Bullet/ File Server –Store files ina contiguously fashion –Most files can be sent in a single RPC –Designedto be a de icated server • DirectoryServer –Handles naming of files –Knows the physical loc tio of each file

  38. The system is free • • • It has not had an official update in over 10 years Can use powerful older/slowerCPUs to system create a • Micro-Kernel allows for other file systemsto be created • Has manyUNIX like commandsandprograms • Can only hold programs as large as its physical memory

  39. Comparison of DOS

  40. amoebaOS

More Related