Kernel (Fig 4.10 [Stal 05]) Operating Systems Examples and Process Management

Samankaltaiset tiedostot
NYKYAIKAISET KÄYTTÖ- JÄRJESTELMÄT

LUENTO 2. u moniajoa monen käyttäjän ympäristössä, oma KJ versio. u sisältää keskeiset tietoliikenneprotokollat

KJ-II K2006 / Auvo Häkkinen - Teemu Kerola II:ssa?

Processes and threads

On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

C++11 seminaari, kevät Johannes Koskinen

FinFamily Installation and importing data ( ) FinFamily Asennus / Installation

Capacity Utilization

Uusi Ajatus Löytyy Luonnosta 4 (käsikirja) (Finnish Edition)

FinFamily PostgreSQL installation ( ) FinFamily PostgreSQL

Mikroydin (vs monoliittinen ydin)

KJ:n ydin (Fig 4.10 [Stal 05])

Choose Finland-Helsinki Valitse Finland-Helsinki

Open Source -ohjelmien perusteet

KJ:n ydin (Fig 4.10 [Stal 05])

Lab SBS3.FARM_Hyper-V - Navigating a SharePoint site

7.4 Variability management

TIEKE Verkottaja Service Tools for electronic data interchange utilizers. Heikki Laaksamo

1. SIT. The handler and dog stop with the dog sitting at heel. When the dog is sitting, the handler cues the dog to heel forward.

On instrument costs in decentralized macroeconomic decision making (Helsingin Kauppakorkeakoulun julkaisuja ; D-31)

National Building Code of Finland, Part D1, Building Water Supply and Sewerage Systems, Regulations and guidelines 2007

7. Product-line architectures

Efficiency change over time

Tietokonejärjestelmä. Tietokoneen rakenne. Ch 1 - Ch 8 [Sta06] Valikoituja paloja. TITO-kurssista. John von Neumann ja EDVAC, 1949.

Operating Systems, 8 op

Nuku hyvin, pieni susi -????????????,?????????????????. Kaksikielinen satukirja (suomi - venäjä) ( (Finnish Edition)

Sisältöä. Tietokoneen rakenne. Ch 1 - Ch 8 [Sta06] Valikoituja paloja TITO-kurssista. Tietokonejärjestelmä

Security server v6 installation requirements

Network to Get Work. Tehtäviä opiskelijoille Assignments for students.

anna minun kertoa let me tell you

You can check above like this: Start->Control Panel->Programs->find if Microsoft Lync or Microsoft Lync Attendeed is listed

Salasanan vaihto uuteen / How to change password

Ylläpitäjät, järjestelmäarkkitehdit ja muut, jotka huolehtivat VMwareinfrastruktuurin

Security server v6 installation requirements

BDD (behavior-driven development) suunnittelumenetelmän käyttö open source projektissa, case: SpecFlow/.NET.

Information on preparing Presentation

Käyttöjärjestelmät: prosessit

Voice Over LTE (VoLTE) By Miikka Poikselkä;Harri Holma;Jukka Hongisto

Sisällysluettelo Table of contents

Results on the new polydrug use questions in the Finnish TDI data

RINNAKKAINEN OHJELMOINTI A,

Green Growth Sessio - Millaisilla kansainvälistymismalleilla kasvumarkkinoille?

AYYE 9/ HOUSING POLICY

Linux- RekryKoulutus

Arkkitehtuuritietoisku. eli mitä aina olet halunnut tietää arkkitehtuureista, muttet ole uskaltanut kysyä

BLOCKCHAINS AND ODR: SMART CONTRACTS AS AN ALTERNATIVE TO ENFORCEMENT

TW-LTE 4G/3G. USB-modeemi (USB 2.0)

Constructive Alignment in Specialisation Studies in Industrial Pharmacy in Finland

Collaborative & Co-Creative Design in the Semogen -projects

LYTH-CONS CONSISTENCY TRANSMITTER

Tietorakenteet ja algoritmit

Rekisteröiminen - FAQ

HITSAUKSEN TUOTTAVUUSRATKAISUT

IFAGG WORLD CUP I, CHALLENGE CUP I and GIRLS OPEN INTERNATIONAL COMPETITION 1 st 2 nd April 2011, Vantaa Finland

Tarua vai totta: sähkön vähittäismarkkina ei toimi? Satu Viljainen Professori, sähkömarkkinat

Use of spatial data in the new production environment and in a data warehouse

Other approaches to restrict multipliers

The CCR Model and Production Correspondence

Information on Finnish Language Courses Spring Semester 2018 Päivi Paukku & Jenni Laine Centre for Language and Communication Studies

Viestintään tarvitaan tiedon jakamista tietotyöläisten kesken Ville Hurnonen

TIETEEN PÄIVÄT OULUSSA

Kysymys 5 Compared to the workload, the number of credits awarded was (1 credits equals 27 working hours): (4)

MEETING PEOPLE COMMUNICATIVE QUESTIONS

Windows Phone. Module Descriptions. Opiframe Oy puh Espoo

Infrastruktuurin asemoituminen kansalliseen ja kansainväliseen kenttään Outi Ala-Honkola Tiedeasiantuntija

1.3 Lohkorakenne muodostetaan käyttämällä a) puolipistettä b) aaltosulkeita c) BEGIN ja END lausekkeita d) sisennystä

Tässä ohjeessa käydään läpi sosiaalisen median verkkopalveluiden lisätoimintojen lisääminen verkkosivuillesi.

ECVETin soveltuvuus suomalaisiin tutkinnon perusteisiin. Case:Yrittäjyyskurssi matkailualan opiskelijoille englantilaisen opettajan toteuttamana

KONEISTUSKOKOONPANON TEKEMINEN NX10-YMPÄRISTÖSSÄ

Information on Finnish Courses Autumn Semester 2017 Jenni Laine & Päivi Paukku Centre for Language and Communication Studies

Tietokonearkkitehtuuri 2 TKT-3201 (5 op)

Miksi Suomi on Suomi (Finnish Edition)

FIS IMATRAN KYLPYLÄHIIHDOT Team captains meeting

S SÄHKÖTEKNIIKKA JA ELEKTRONIIKKA

Information on Finnish Language Courses Spring Semester 2017 Jenni Laine

Making diversity manageable. Miradore. Käytännön kokemuksia rahoituksen hakemisesta. Tiistai Technopolis Vapaudenaukio / Lappeenranta

Ohjelmointikielet ja -paradigmat 5op. Markus Norrena

Avoimen lähdekoodin kehitysmallit

Laskennallisen fysiikan esimerkkejä avoimesta tutkimuksesta Esa Räsänen Fysiikan laitos, Tampereen teknillinen yliopisto

1.3Lohkorakenne muodostetaan käyttämällä a) puolipistettä b) aaltosulkeita c) BEGIN ja END lausekkeita d) sisennystä

Internet of Things. Ideasta palveluksi IoT:n hyödyntäminen teollisuudessa. Palvelujen digitalisoinnista 4. teolliseen vallankumoukseen

LANSEERAUS LÄHESTYY AIKATAULU OMINAISUUDET. Sähköinen jäsenkortti. Yksinkertainen tapa lähettää viestejä jäsenille

Curriculum. Gym card

S SÄHKÖTEKNIIKKA JA ELEKTRONIIKKA

The role of 3dr sector in rural -community based- tourism - potentials, challenges

Venttiilit ja Automaatio

Suihkukoneet 1:73 ja pienemmät. Potkurikoneet 1:72-1:49. Suihkukoneet 1:72-1:49. Potkurikoneet 1:35 ja suuremmat. Suihkukoneet 1:35 ja suuremmat

812336A C++ -kielen perusteet,

1. Liikkuvat määreet

Opintomatkat PDF. ==>Download: Opintomatkat PDF ebook By Risto Antikainen

4x4cup Rastikuvien tulkinta

Käytännön kokemuksia osallistumisesta EU projekteihin. 7. puiteohjelman uusien hakujen infopäivät 2011

Käyttöliittymät II. Käyttöliittymät I Kertaus peruskurssilta. Keskeisin kälikurssilla opittu asia?

Hankkeen toiminnot työsuunnitelman laatiminen

SIMULINK S-funktiot. SIMULINK S-funktiot

Data protection template

Laiteriippumaton UI Ajaxilla ja Javalla

SpeechMike III sarjan sanelumikrofonien (mallit LFH3200 ja LFH3220) yhteensopivuus SpeechMagic Executive saneluohjelman kanssa

OFFICE 365 OPISKELIJOILLE

Transkriptio:

WEEK 2 Operating Systems Examples and Process Management Microkernels (4.3), SMP (4.2) Examples (2.5 2.8) Process management (Chapter 3) 1 Kernel (Fig 4.10 [Stal 05]) monolithic 2 Syksy 20007, Tiina Niklander 3-1

WINDOWS Ch 2.5 [Stal05] (see also Tan01, Ch 11) 3 (kj:n peruspalvelut) 4 Syksy 20007, Tiina Niklander 3-2

WIN32 API palvelupyyntöjä Fig 11-31 [Tane 01] Fig 11-29 [Tane 01] 5 W2K Oliot W2K implementation is mostly based on objects Objects: files, processes, threads, semaphores, timers, windows, Resource is handled as an object only when it could be shared or is accessed in user mode Object Manager Fig. 2.13 Objects in the kernel microkernel control objects dispatcher and synchronization objects Tbl. 2.5 Tbl. 6.7 6 Syksy 20007, Tiina Niklander 3-3

W2K Executive olioita Fig 11-10 [Tan01] 7 LINUX Example of a modern UNIX Ch 2.8 [Stal05] (see also Ch 10 [Tan01]) 8 Syksy 20007, Tiina Niklander 3-4

Linux Joint Internet-based development Experts around the world 1991 -> We are the home of LINUX Linus Torvalds studied and worked at our department. Actually the earlier version of this course was the initial starting point in his development process Free Software Foundation & GNU Public License Free distribution of the kernel code (C & assembler) Free distribution of some (most) system software GNU C, Gnome, KDE, Apache, Samba, Several commercial distributions RedHat, SuSe, Debian, Mandrake, TurboLinux, jne... 9 Linux Originally one monolithic kernel - configurable Kernel is one big binary file Fast and easy way of distributing information within the kernel Separate loadable modules Everything need not be in the binary file Since it is open source, in addition to existing configurability and optimisations, you can modify the kernel based on your needs Runs on several different architectures LSB: Linux Standard Base 10 Syksy 20007, Tiina Niklander 3-5

Linux: loadable modules Must be registered with the kernel init_module(), delete_module(), register_blkdev(), unregister_blkdev(), register_filesystem(), unregister_filesystem(), 11 Linux: loadable modules Fig 2.17 [Stal05] 12 Syksy 20007, Tiina Niklander 3-6

Linux kernel components Compare with W2000 in Fig. 2.13 [Stal05] Fig 2.18 Stal 05] 13 Linux: Information Some books Bovet D.P., Cesati M.: Understanding the Linux Kernel. O'Reilly, 2 nd ed., 2003. Beck M., Böhme H. & al. : Linux Kernel Programming. Addison-Wesley, 3 rd ed., 2002 Rubini A., Corbet J.: Code Linux Device Drivers. O Reilly. 2001. 2nd ed. http:// lxr.linux.no 14 Syksy 20007, Tiina Niklander 3-7

WEEK 2 Process management Stallings, Chapter 3 15 Process Kuva 3.12 16 Syksy 20007, Tiina Niklander 3-8

Process Code = executable instructions Data = variables Stack = workarea Parameter passing to subroutines/system calls Process Control Block, PCB = management information and structures 17 Process creation Create PCB OS generates a unique ID Allocate memory for the process Initiate PCB Link PCB to other structures Place to Ready-queue, link to parent process, etc 18 Syksy 20007, Tiina Niklander 3-9

Mode switch (vs. process switch) Interrupt Change mode to kernel mode Start executing OS as an interrupt handler Give CPU back to the interrupted process (no process switch) No need to copy all register contents to PCB PC and PSW copied to stack during the call Interrupt handlers stores to stack only the contents of registers it is going to use PCB unused and untouched Return: Copy registers from stack In process switch more work to do Call dispatcher only if there is a reason to change process 19 Process switch Register values from CPU and stack to PCB Update counter fields etc. Update process state (Ready/Blocked/Exit...) Place to a queue according the state Choose next process to run Ready Running Initiate MMU Register values from PCB to CPU 20 Syksy 20007, Tiina Niklander 3-10

A V B V C V A V C A,B ja C processes V Dispatcher 21 Process states A B C V 22 Syksy 20007, Tiina Niklander 3-11

Process states Kuva 3.8 23 Process queues Kuva 3.7 24 Syksy 20007, Tiina Niklander 3-12

OS structures Kuva 3.10 25 UNIX SVR4 Processes (Fig. 3.15 (b) [Stal05] ) Most of the OS work is done in user mode within user process Only part of the OS work is done by specific OS processes in user mode partiallys ks. Fig. 3.17 [Stal05] Priviledged process (in kernel mode) is not preemptable It can loose processor only by requesting a resource that is cannot get just now Process 0 boot Process 1 init (mother of all) 26 Syksy 20007, Tiina Niklander 3-13

UNIX: Process states and state transitions 27 Syksy 20007, Tiina Niklander 3-14