Critical section problem (repetition)

Size: px
Start display at page:

Download "Critical section problem (repetition)"

Transcription

1 C&UNIX Critical section problem (repetition) 1 Critical section problem (repetition) repeat entry section critical section exit section remainder section until false; Två processer: P 0, P 1 ej samtidigt i kritiska sektionen

2 C&UNIX Critical section problem (repetition) 2 Lösning var flag: array[0..1] of boolean turn : 0..1 repeat flag[i] := true; turn := j while(flag[j] and turn = j) do no-op ; critical section flag[i] := false; remainder section until f alse; P i egen flagga ej krav atomärt uppfyller Ömsesidigt exklusift Progressivt Begränsad generaliseras till n processer

3 C&UNIX Semaforer (repetition) 3 Semaforer (repetition) olika processer har tillgång till samma semafor S S : heltal # 0: upptaget # 1: ledig uteslutande genom: P: wait(s) V: signal(s) atomära operationer

4 C&UNIX Semaforer (repetition) 4 Klassiska definitioner wait(s) : while S 0 do no-op; S := S 1; signal(s) : S := S + 1 initiellt S = 1 exekveras atomärt löser många synchroniserings problem

5 C&UNIX System V interprocess kommmunikationsmekanismer 5 System V interprocess kommmunikationsmekanismer message queues semaphores shared memory Olika processer gemensam nyckel heltal key_t ftok ( char *pathname, char proj ); /usr/include/sys/types.h /usr/include/bits/types.h man 5 ipc

6 C&UNIX Sys V IPC semaforer 6 Skapa, få tillgång till, semafor: Sys V IPC semaforer #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> int semget ( key t key, int nsems, int semflg ); key: nsems: semflg: returvärde: nyckel för tillgång till semafor storlek på semaforarray skapa eller ej, läs-skriv rättigheter semafor ID semid, -1 vid mislyckande

7 C&UNIX Sys V IPC semaforer 7 argument semget(..) key: nsems: semflg: gemensam i olika processer > 0 vid skapande, tillgång == 0 tillgång existerande semafor sätts bit för bit m.h.a. operatorn, se /usr/include/linux/ipc.h #define IPC CREAT rättigheter som vid filaccess

8 C&UNIX Sys V IPC semaforer 8 kontroll av semaforer int semctl (int semid, int semnum, int cmd, union semun arg); Ändrar rättigheter, värde, e.d. semid: semnum: cmd: arg: returneras av semget(..) index i semaforarray kontroll flagga optional

9 C&UNIX Sys V IPC semaforer 9 union semun argumentet till semctl(.. ) ej obligatoriskt ska deklareras av användaren union semun { int val; / value for SETVAL / struct semid ds buf; / buffer for IPC STAT, IPC SET / unsigned short int array;/ array for GETALL, SETALL / struct seminfo buf; / buffer for IPC INFO / };

10 C&UNIX Sys V IPC semaforer 10 cmd argument till semctl(.. ) SETVAL sätter semaforens värde GETVAL returnerar semaforens värde GETPID returnerar pid senaste process SETALL använder arg.array för sätta värden GETALL använder arg.array för returnera värden IPC RMID ta bort semafor

11 C&UNIX Sys V IPC semaforer 11 operationer på semaforer int semop ( int semid, struct sembuf sops, unsigned nsops); semid: sembuf: nsops returneras av semget(..) array med operationer antal operationer struct sembuf /* definierad i sys/sem.h */ { unsigned short int sem_num; /* semaphore number */ short int sem_op; /* semaphore operation */ short int sem_flg; /* operation flag */ };

12 C&UNIX Sys V IPC semaforer 12 operationer på semaforer forts. S[nsops] array med semaforer sem op > 0 inkrementerar S[sem num] sem op == 0 vänta till S[sem num == 0 sem op < 0 dekrementerar S[sem num] blockerar om resultatet < 0 misslyckas om IPC NOWAIT satt sem flg = IPC NOWAIT väntar ej sem flg = SEM UNDO undo på exit

13 C&UNIX Sys V IPC semaforer 13 mer info: man 2 ipc man 5 ipc /* om Sys V IPC */ man semget /* individuella funktioner */ man ipcs /* vilka allockerade resurser har jag */ man ipcrm /* tar bort resurser */ ipcrm [ shm msg sem ] id

14 C&UNIX Sys V Message queues 14 skapa message queue Sys V Message queues int msgget ( key t key, int msgflg ) ; int msgctl ( int msqid, int cmd, struct msqid ds buf ); #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> key = ftok( /home/jag, 1); msqid = msgget(key, IPC CREAT 0666) ;

15 C&UNIX Sys V Message queues 15 #define MSGLENGTH 128 skicka meddelande struct msgbuf{ / exempel def. i <sys/msg.h> / }; long mtype; / message type, must be > 0 / char mtext[msglength]; / message contents / int msgsnd(int msqid, struct msgbuf msgp, size t msgsz, int msgflg); returvärden: 0, 1

16 C&UNIX Sys V Message queues 16 läsa meddelande ssize t msgrcv ( int msqid, struct msgbuf msgp, size t msgsz, long msgtyp, int msgflg ); ssize t: returvärde: msqid: msgp: msgsz: msgtyp: msgflg: int, byte count, error, bits/types.h 1, antal bytes kopierat från msgget pekare till struct msgbuf maximala storlek mtext (bytes) typ flaggor

IPC. Semaphores were chosen for synchronisation (out of several options).

IPC. Semaphores were chosen for synchronisation (out of several options). IPC Two processes will use shared memory to communicate and some mechanism for synchronise their actions. This is necessary because shared memory does not come with any synchronisation tools: if you can

More information

Unix System Calls. Dept. CSIE 2006.12.25

Unix System Calls. Dept. CSIE 2006.12.25 Unix System Calls Gwan-Hwan Hwang Dept. CSIE National Taiwan Normal University 2006.12.25 UNIX System Overview UNIX Architecture Login Name Shells Files and Directories File System Filename Pathname Working

More information

Shared Memory Segments and POSIX Semaphores 1

Shared Memory Segments and POSIX Semaphores 1 Shared Memory Segments and POSIX Semaphores 1 Alex Delis delis -at+ pitt.edu October 2012 1 Acknowledgements to Prof. T. Stamatopoulos, M. Avidor, Prof. A. Deligiannakis, S. Evangelatos, Dr. V. Kanitkar

More information

An Oracle Technical White Paper July 2012. Red Hat Enterprise Linux to Oracle Solaris Porting Guide

An Oracle Technical White Paper July 2012. Red Hat Enterprise Linux to Oracle Solaris Porting Guide An Oracle Technical White Paper July 2012 Red Hat Enterprise Linux to Oracle Solaris Porting Guide What s New in Oracle Solaris 11?... 4 Oracle Portability and Compatibility Guarantee... 5 Similarities

More information

Interprocess Communication in Java

Interprocess Communication in Java Interprocess Communication in Java George C. Wells Department of Computer Science, Rhodes University Grahamstown, 6140, South Africa G.Wells@ru.ac.za Abstract This paper describes a library of classes

More information

WINDOWS PRESENTATION FOUNDATION LEKTION 3

WINDOWS PRESENTATION FOUNDATION LEKTION 3 WINDOWS PRESENTATION FOUNDATION LEKTION 3 Mahmud Al Hakim mahmud@alhakim.se www.alhakim.se COPYRIGHT 2015 MAHMUD AL HAKIM WWW.WEBACADEMY.SE 1 AGENDA Introduktion till Databindning (Data Binding) Element

More information

Tanden Care Provider Interfaces Submit Claim v3

Tanden Care Provider Interfaces Submit Claim v3 Tanden Care Provider Interfaces Submit Claim v3 Integrationskrav ICC 2 (32) Table of contents 1 2 3 4 5 INTRODUCTION... 3 INTEGRATIONS... 3 INTEGRATION 1... 6 3.1 SUBMITCLAIM REQUEST... 6 3.1.1 Message

More information

Sickness benefit [Sjukpenning]

Sickness benefit [Sjukpenning] Sickness benefit [Sjukpenning] You are entitled to sickness benefits from Försäkringskassan [the Swedish Social Insurance Agency] when you cannot work due to illness. You can receive sickness benefits

More information

Projektet Computer: Specifikation. Objektorienterad modellering och diskreta strukturer / design. Projektet Computer: Data. Projektet Computer: Test

Projektet Computer: Specifikation. Objektorienterad modellering och diskreta strukturer / design. Projektet Computer: Data. Projektet Computer: Test Projektet Computer: Specifikation Objektorienterad modellering och diskreta strukturer / design Designmönster Lennart Andersson Reviderad 2010 09 04 public class Computer { public Computer(Memory memory)

More information

Outline. Review. Inter process communication Signals Fork Pipes FIFO. Spotlights

Outline. Review. Inter process communication Signals Fork Pipes FIFO. Spotlights Outline Review Inter process communication Signals Fork Pipes FIFO Spotlights 1 6.087 Lecture 14 January 29, 2010 Review Inter process communication Signals Fork Pipes FIFO Spotlights 2 Review: multithreading

More information

International Council on Systems Engineering. ISO/IEC/IEEE 15288 SEminar Linköping 16 november 2015

International Council on Systems Engineering. ISO/IEC/IEEE 15288 SEminar Linköping 16 november 2015 International Council on Systems Engineering ISO/IEC/IEEE 15288 SEminar Linköping 16 november 2015 WHY there is a need for SE and INCOSE Need to manage increasing complexity Technology trends Systems of

More information

Utbytesbatterier för UPS:er 300VA - 6000VA

Utbytesbatterier för UPS:er 300VA - 6000VA Electrical Group Eaton Power Quality AB Kista Science Tower 164 51 Kista, Sverige tel: +46 8 598 940 00 fax: +46 8 598 940 40 www.powerware.se www.eaton.com Utbytesbatterier för UPS:er 300VA - 6000VA Batterier

More information

Testing Database Performance with HelperCore on Multi-Core Processors

Testing Database Performance with HelperCore on Multi-Core Processors Project Report on Testing Database Performance with HelperCore on Multi-Core Processors Submitted by Mayuresh P. Kunjir M.E. (CSA) Mahesh R. Bale M.E. (CSA) Under Guidance of Dr. T. Matthew Jacob Problem

More information

System Calls and Standard I/O

System Calls and Standard I/O System Calls and Standard I/O Professor Jennifer Rexford http://www.cs.princeton.edu/~jrex 1 Goals of Today s Class System calls o How a user process contacts the Operating System o For advanced services

More information

openbim FM solutions and projects in Sweden Oslo, 11 September 2014 Client BIM requirements BIM in the State

openbim FM solutions and projects in Sweden Oslo, 11 September 2014 Client BIM requirements BIM in the State Agenda Client BIM requirements BIM in the State BIP fi2 messages Energy declarations Locking systems Demo from Tyréns, Per Bjälnes Viewer application Client BIM requirements BIM in the State BIM A tool

More information

1 Posix API vs Windows API

1 Posix API vs Windows API 1 Posix API vs Windows API 1.1 File I/O Using the Posix API, to open a file, you use open(filename, flags, more optional flags). If the O CREAT flag is passed, the file will be created if it doesnt exist.

More information

Parental benefit [Föräldrapenning]

Parental benefit [Föräldrapenning] Parental benefit [Föräldrapenning] You can receive parental benefit to stay home from work to take care of your child. Parental benefit, which is paid for a total of 480 days per child, has three different

More information

Introduction to UNIX System Programming

Introduction to UNIX System Programming Introduction to UNIX System Programming Page number : Chapter 1 : Introduction 3 1.1. Man command.. 3 1.2. System Calls and Library calls 4 1.3. Using system calls and library functions.. 5 1.4. Error

More information

Jag valde att använda Net-EPP_client.php från centralnic för att komma igång.

Jag valde att använda Net-EPP_client.php från centralnic för att komma igång. EPP och PHP Det finns flera olika klienter där ute för att hantera epp. Net_EPP_client.php phpsrs Hanterar bara EPP kommunikationen. Enkel http://labs.centralnic.com/net_epp_client.php Mer komplett Klarar

More information

Parental benefits [Föräldrapenning]

Parental benefits [Föräldrapenning] Parental benefits [Föräldrapenning] Parental benefits are the benefits parents receive to be able to be at home with their children instead of working. A total of 480 days of benefits are paid per child.

More information

Computer Systems II. Unix system calls. fork( ) wait( ) exit( ) How To Create New Processes? Creating and Executing Processes

Computer Systems II. Unix system calls. fork( ) wait( ) exit( ) How To Create New Processes? Creating and Executing Processes Computer Systems II Creating and Executing Processes 1 Unix system calls fork( ) wait( ) exit( ) 2 How To Create New Processes? Underlying mechanism - A process runs fork to create a child process - Parent

More information

OS: IPC I. Cooperating Processes. CIT 595 Spring 2010. Message Passing vs. Shared Memory. Message Passing: Unix Pipes

OS: IPC I. Cooperating Processes. CIT 595 Spring 2010. Message Passing vs. Shared Memory. Message Passing: Unix Pipes Cooperating Processes Independent processes cannot affect or be affected by the execution of another process OS: IPC I CIT 595 Spring 2010 Cooperating process can affect or be affected by the execution

More information

Introduction to Java

Introduction to Java Introduction to Java The HelloWorld program Primitive data types Assignment and arithmetic operations User input Conditional statements Looping Arrays CSA0011 Matthew Xuereb 2008 1 Java Overview A high

More information

How To Write A Program On Linux (Amd64) With A Microsoft Powerpoint 2 (Amd32) (Amd86) (Orchestra) (Unix) (Windows) (Macintosh) (Apl) (Powerpoint

How To Write A Program On Linux (Amd64) With A Microsoft Powerpoint 2 (Amd32) (Amd86) (Orchestra) (Unix) (Windows) (Macintosh) (Apl) (Powerpoint Lösung zur Praktikumsaufgabe 2 Thema: Semaphore II 1. Der Prozess erzeugt zunächst eine Semaphore und initialisiert diese offen. Danach erzeugt er einen Sohn, schläft zwei Sekunden und führt dann P() über

More information

Swedish model for Gender Mainstreaming in ESF projects

Swedish model for Gender Mainstreaming in ESF projects Swedish model for Gender Mainstreaming in ESF projects ESF Jämt ESF Jämt is the Swedish name of the County Administrative Boards joint investment. It aims at equality, gender equality and Gender Mainstreaming.

More information

Car Customer Service. SFK Väst, January 2016, Måns Falk, mfalk, Security Class; Proprietary 2016-01-21

Car Customer Service. SFK Väst, January 2016, Måns Falk, mfalk, Security Class; Proprietary 2016-01-21 Car Customer Service SFK Väst, January 2016, Måns Falk, mfalk, Security Class; Proprietary 2016-01-21 1 Lean SERVICE En upptäcktsresa Måns Falk Volvo Car Customer Service Customer Service Lean Knowledge

More information

Minix Mini Unix (Minix) basically, a UNIX - compatible operating system. Minix is small in size, with microkernel-based design. Minix has been kept

Minix Mini Unix (Minix) basically, a UNIX - compatible operating system. Minix is small in size, with microkernel-based design. Minix has been kept Minix Mini Unix (Minix) basically, a UNIX - compatible operating system. Minix is small in size, with microkernel-based design. Minix has been kept (relatively) small and simple. Minix is small, it is

More information

Programmation Systèmes Cours 9 UNIX Domain Sockets

Programmation Systèmes Cours 9 UNIX Domain Sockets Programmation Systèmes Cours 9 UNIX Domain Sockets Stefano Zacchiroli zack@pps.univ-paris-diderot.fr Laboratoire PPS, Université Paris Diderot 2013 2014 URL http://upsilon.cc/zack/teaching/1314/progsyst/

More information

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification

Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification Application Note 3/2003 PC Master Software Communication Protocol Specification By Pavel Kania and Michal Hanak S 3 L Applications Engineerings MCSL Roznov pod Radhostem Introduction The purpose of this

More information

Nyheter i SAS9.4 för programmerare

Nyheter i SAS9.4 för programmerare Nyheter i SAS9.4 för programmerare Georgios Karagiannis, Technical Support Copyright 2010 SAS Institute Inc. All rights reserved. PROC PRINT labels proc print data=sashelp.cars label grandtotal_label='total

More information

SMTP-32 Library. Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows. Version 5.2

SMTP-32 Library. Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows. Version 5.2 SMTP-32 Library Simple Mail Transfer Protocol Dynamic Link Library for Microsoft Windows Version 5.2 Copyright 1994-2003 by Distinct Corporation All rights reserved Table of Contents 1 Overview... 5 1.1

More information

Computer Science & Engineering

Computer Science & Engineering DCE GURGAON LAB MANUAL Computer Science & Engineering OPERATING SYSTEM CHAIN SINGH ASSISTANT PROFESSOR CSE DEPARTMENT Operating System Lab MTCE-610A List of Experiments 1. Write programs using the following

More information

Shared Memory Introduction

Shared Memory Introduction 12 Shared Memory Introduction 12.1 Introduction Shared memory is the fastest form of IPC available. Once the memory is mapped into the address space of the processes that are sharing the memory region,

More information

Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY. 6.828 Operating System Engineering: Fall 2005

Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY. 6.828 Operating System Engineering: Fall 2005 Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.828 Operating System Engineering: Fall 2005 Quiz II Solutions Average 84, median 83, standard deviation

More information

Property taxation Småhus 2015 2017 This brochure contains information about property tax assessment for småhus 2015, 2016 and 2017

Property taxation Småhus 2015 2017 This brochure contains information about property tax assessment for småhus 2015, 2016 and 2017 Property taxation Property taxation Småhus 2015 2017 This brochure contains information about property tax assessment for småhus 2015, 2016 and 2017 File the return for your property simplest on the Internet

More information

Keil C51 Cross Compiler

Keil C51 Cross Compiler Keil C51 Cross Compiler ANSI C Compiler Generates fast compact code for the 8051 and it s derivatives Advantages of C over Assembler Do not need to know the microcontroller instruction set Register allocation

More information

Green Telnet. Making the Client/Server Model Green

Green Telnet. Making the Client/Server Model Green Green Telnet Reducing energy consumption is of growing importance. Jeremy and Ken create a "green telnet" that lets clients transition to a low-power, sleep state. By Jeremy Blackburn and Ken Christensen,

More information

## Remove any existing rules -D

## Remove any existing rules -D This file contains a sample audit configuration. Combined with the system events that are audited by default, this set of rules causes audit to generate records for the auditable events specified by the

More information

Application Note 49. Using the Digi TransPort Fleet Card. October 2011

Application Note 49. Using the Digi TransPort Fleet Card. October 2011 Application Note 49 Using the Digi TransPort Fleet Card October 2011 Contents 1 INTRODUCTION... 3 1.1 Outline... 3 1.2 Assumptions... 3 1.3 Corrections... 3 1.4 Version... 3 2 Fleet card Features... 4

More information

Mall för kursplaner på engelska på Naturvetenskapliga fakulteten 2015-10-01

Mall för kursplaner på engelska på Naturvetenskapliga fakulteten 2015-10-01 Mall för kursplaner på engelska på Naturvetenskapliga fakulteten 2015-10-01 Tidsplan: Nya och reviderade kursplaner ska vara fastställda senast en månad före sista anmälningsdag vilket i normalfallet innebär

More information

Linux/UNIX System Programming. POSIX Shared Memory. Michael Kerrisk, man7.org c 2015. February 2015

Linux/UNIX System Programming. POSIX Shared Memory. Michael Kerrisk, man7.org c 2015. February 2015 Linux/UNIX System Programming POSIX Shared Memory Michael Kerrisk, man7.org c 2015 February 2015 Outline 22 POSIX Shared Memory 22-1 22.1 Overview 22-3 22.2 Creating and opening shared memory objects 22-10

More information

Mekaniska klämventiler typ OV Mechanical Pinch Valves type OV

Mekaniska klämventiler typ OV Mechanical Pinch Valves type OV typ OV type OV Reglering med säkerhet... Safety regulated... Mekaniska klämventiler - en armaturlösning för flödesspärrning och reglering : Valve solution for isolation and regulation Även större fasta

More information

The Linux Kernel: Process Management. CS591 (Spring 2001)

The Linux Kernel: Process Management. CS591 (Spring 2001) The Linux Kernel: Process Management Process Descriptors The kernel maintains info about each process in a process descriptor, of type task_struct. See include/linux/sched.h Each process descriptor contains

More information

Software Application Development. D2XX Programmer's Guide

Software Application Development. D2XX Programmer's Guide Future Technology Devices International Ltd. Software Application Development D2XX Programmer's Guide Document Reference No.: FT_000071 Version 1.3 Issue Date: 2012-02-23 FTDI provides DLL and virtual

More information

How To Understand How A Process Works In Unix (Shell) (Shell Shell) (Program) (Unix) (For A Non-Program) And (Shell).Orgode) (Powerpoint) (Permanent) (Processes

How To Understand How A Process Works In Unix (Shell) (Shell Shell) (Program) (Unix) (For A Non-Program) And (Shell).Orgode) (Powerpoint) (Permanent) (Processes Content Introduction and History File I/O The File System Shell Programming Standard Unix Files and Configuration Processes Programs are instruction sets stored on a permanent medium (e.g. harddisc). Processes

More information

KINAR13h, KINLO13h. The marking period is, for the most part, 15 working days, otherwise it s the following date:

KINAR13h, KINLO13h. The marking period is, for the most part, 15 working days, otherwise it s the following date: Materialplanering och Styrning 7.5 ECTS Ladokcode: The exam is given to: 41I29M KININ13h, KININ13h1, KINAF13h-pgrp3, KINAF13h-pgrp4, KINAR13h, KINLO13h ExamCode: Date of exam: 2016-01-12 Time: 14:00 18:00

More information

System Calls Related to File Manipulation

System Calls Related to File Manipulation KING FAHD UNIVERSITY OF PETROLEUM AND MINERALS Information and Computer Science Department ICS 431 Operating Systems Lab # 12 System Calls Related to File Manipulation Objective: In this lab we will be

More information

Advantech AE Technical Share Document

Advantech AE Technical Share Document Advantech AE Technical Share Document Date 2016 / 2 / 17 SR# 1-2374089601 Category FAQ SOP Related OS Microsoft Windows7 Abstract Describe how to use both local tag and script to achieve indirect tag function.

More information

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C

Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C 1 An essential part of any embedded system design Programming 2 Programming in Assembly or HLL Processor and memory-sensitive

More information

Linux Kernel Rootkit : Virtual Terminal Key Logger

Linux Kernel Rootkit : Virtual Terminal Key Logger Linux Kernel Rootkit : Virtual Terminal Key Logger Jeena Kleenankandy Roll No. P140066CS Depatment of Computer Science and Engineering National Institute of Technology Calicut jeena p140066cs@nitc.ac.in

More information

CSI 402 Lecture 13 (Unix Process Related System Calls) 13 1 / 17

CSI 402 Lecture 13 (Unix Process Related System Calls) 13 1 / 17 CSI 402 Lecture 13 (Unix Process Related System Calls) 13 1 / 17 System Calls for Processes Ref: Process: Chapter 5 of [HGS]. A program in execution. Several processes are executed concurrently by the

More information

Development allowance and activity grant [Aktivitetsstöd och utvecklingsersättning]

Development allowance and activity grant [Aktivitetsstöd och utvecklingsersättning] Development allowance and activity grant [Aktivitetsstöd och utvecklingsersättning] If you are participating in a labour market programme, you are eligible for development allowance or an activity grant.

More information

Object Classes and Permissions

Object Classes and Permissions Object Classes and Permissions Security Policy Development Primer for Security Enhanced Linux (Module 5) 2 SE Linux Policy Structure Top-level sections of policy.conf: Flask definitions object classes,

More information

ELEC 377. Operating Systems. Week 1 Class 3

ELEC 377. Operating Systems. Week 1 Class 3 Operating Systems Week 1 Class 3 Last Class! Computer System Structure, Controllers! Interrupts & Traps! I/O structure and device queues.! Storage Structure & Caching! Hardware Protection! Dual Mode Operation

More information

The Linux Programmer s Guide

The Linux Programmer s Guide The Linux Programmer s Guide Sven Goldt Sven van der Meer Scott Burkett Matt Welsh Version 0.4 March 1995 0...Our continuing mission: to seek out knowledge of C, to explore strange unix commands, and to

More information

INTERNATIONELLA BANKÖVERFÖRINGAR

INTERNATIONELLA BANKÖVERFÖRINGAR Market.com s kunder kan sätta in pengar på sina konton genom Wire Transfer och ett flertal banker världen över. Här nedan mer detaljer om Wire Transfer: INTERNATIONELLA BANKÖVERFÖRINGAR ROYAL BANK OF SCOTLAND

More information

Jorix kernel: real-time scheduling

Jorix kernel: real-time scheduling Jorix kernel: real-time scheduling Joris Huizer Kwie Min Wong May 16, 2007 1 Introduction As a specialized part of the kernel, we implemented two real-time scheduling algorithms: RM (rate monotonic) and

More information

Generalised Socket Addresses for Unix Squeak 3.9 11

Generalised Socket Addresses for Unix Squeak 3.9 11 Generalised Socket Addresses for Unix Squeak 3.9 11 Ian Piumarta 2007 06 08 This document describes several new SocketPlugin primitives that allow IPv6 (and arbitrary future other) address formats to be

More information

Configuring and Administering Hyper-V in Windows Server 2012

Configuring and Administering Hyper-V in Windows Server 2012 Configuring and Administering Hyper-V in Windows Server 2012 Längd: 2 Days Kurskod: M55021 Sammanfattning: Denna kurs lär dig hur du konfigurerar och administrerar Hyper-V i Windows Server 2012. Efter

More information

OPERATING SYSTEMS PROCESS SYNCHRONIZATION

OPERATING SYSTEMS PROCESS SYNCHRONIZATION OPERATING SYSTEMS PROCESS Jerry Breecher 6: Process Synchronization 1 OPERATING SYSTEM Synchronization What Is In This Chapter? This is about getting processes to coordinate with each other. How do processes

More information

Socket Programming. Kameswari Chebrolu Dept. of Electrical Engineering, IIT Kanpur

Socket Programming. Kameswari Chebrolu Dept. of Electrical Engineering, IIT Kanpur Socket Programming Kameswari Chebrolu Dept. of Electrical Engineering, IIT Kanpur Background Demultiplexing Convert host-to-host packet delivery service into a process-to-process communication channel

More information

Lecture 25 Systems Programming Process Control

Lecture 25 Systems Programming Process Control Lecture 25 Systems Programming Process Control A process is defined as an instance of a program that is currently running. A uni processor system or single core system can still execute multiple processes

More information

Networks. Inter-process Communication. Pipes. Inter-process Communication

Networks. Inter-process Communication. Pipes. Inter-process Communication Networks Mechanism by which two processes exchange information and coordinate activities Inter-process Communication process CS 217 process Network 1 2 Inter-process Communication Sockets o Processes can

More information

INF5140: Specification and Verification of Parallel Systems

INF5140: Specification and Verification of Parallel Systems INF5140: Specification and Verification of Parallel Systems Lecture 7 LTL into Automata and Introduction to Promela Gerardo Schneider Department of Informatics University of Oslo INF5140, Spring 2007 Gerardo

More information

Priority Inversion Problem and Deadlock Situations

Priority Inversion Problem and Deadlock Situations INTER-PROCESS COMMUNICATION AND SYNCHRONISATION: Lesson-11: Priority Inversion Problem and Deadlock Situations 1 1. Priority Inversion 2 Assume Priorities of tasks be in an order such that task I highest

More information

Process definition Concurrency Process status Process attributes PROCESES 1.3

Process definition Concurrency Process status Process attributes PROCESES 1.3 Process Management Outline Main concepts Basic services for process management (Linux based) Inter process communications: Linux Signals and synchronization Internal process management Basic data structures:

More information

Lab 2 review PHP intro. MVC (Model View controller)

Lab 2 review PHP intro. MVC (Model View controller) Lab 2 review PHP intro MVC (Model View controller) What is PHP? Är ett allmänt open source server-side skriptspråk som ursprungligen utformats för webbutveckling Syfte att producera dynamiska webbsidor

More information

Operating Systems and Networks

Operating Systems and Networks recap Operating Systems and Networks How OS manages multiple tasks Virtual memory Brief Linux demo Lecture 04: Introduction to OS-part 3 Behzad Bordbar 47 48 Contents Dual mode API to wrap system calls

More information

Temporary parental benefit for care of children [Tillfällig föräldrapenning vid vård av barn]

Temporary parental benefit for care of children [Tillfällig föräldrapenning vid vård av barn] Temporary parental for care of children [Tillfällig föräldrapenning vid vård av barn] Children are often ill. This is what temporary parental is for. It compensates you when you need to be off work to

More information

Illustration 1: Diagram of program function and data flow

Illustration 1: Diagram of program function and data flow The contract called for creation of a random access database of plumbing shops within the near perimeter of FIU Engineering school. The database features a rating number from 1-10 to offer a guideline

More information

Schema InvoiceXMLschema-100212.xsd

Schema InvoiceXMLschema-100212.xsd Schema InvoiceXMLschema-100212.xsd element InvoiceList type extension of IValidator element InvoiceList/Version type restriction of xs:string documentation AsitisXML-version 541 23 element InvoiceList/Seller

More information

Category work in courtroom talk about domestic violence: Gender as an interactional accomplishment in child custody disputes

Category work in courtroom talk about domestic violence: Gender as an interactional accomplishment in child custody disputes Category work in courtroom talk about domestic violence: Gender as an interactional accomplishment in child custody disputes Henrik Ingrids Department of Child and Youth Studies Stockholm University Appendix:

More information

Interface Programmera mot interface Johan Eliasson Johan Eliasson Interface kan bryta beroendekedjor Skriv generell kod «Type» Class2 Interface

Interface Programmera mot interface Johan Eliasson Johan Eliasson Interface kan bryta beroendekedjor Skriv generell kod «Type» Class2 Interface Interface Snabba att implementera Programmera mot interface Bryter beroenden Gör det enklare att samarbeta Gör det enkelt att i ett senare skede byta ut implementationer mot effektivare Interface kan bryta

More information

Security in EIS. The Future. This lecture. Jonny Pettersson 29/4 2010

Security in EIS. The Future. This lecture. Jonny Pettersson 29/4 2010 Security in EIS Jonny Pettersson 29/4 2010 29/4-10 Design av samverkande system - Jonny Pettersson 1 The Future The world is never going to be perfect, either on- or offline; so let s not set impossibly

More information

Tanden Care Provider Interfaces Reverse Claim v1

Tanden Care Provider Interfaces Reverse Claim v1 Integrationskrav.dot PB3 Tanden Care Provider Interfaces Integrationskrav ICC 2 (18) Attachment- and reference list Number Title, document ID, search path 1 ZT_I_028_ZSubmit.doc PA3 2 TandenTypes.xsd 20080328

More information

Microsoft + SOA = Sant? Joakim Linghall Principal System Engineer SOA and Business Process joakiml@microsoft.com

Microsoft + SOA = Sant? Joakim Linghall Principal System Engineer SOA and Business Process joakiml@microsoft.com Microsoft + SOA = Sant? Joakim Linghall Principal System Engineer SOA and Business Process joakiml@microsoft.com Agenda Real World SOA En plattform för SOA ESB SOA Governance Exempel Lite om framtiden

More information

Stora studentgrupper och god pedagogik. Går det att kombinera?

Stora studentgrupper och god pedagogik. Går det att kombinera? Stora studentgrupper och god pedagogik. Går det att kombinera? Johan Thorbiörnson, PhD johanthor@kth.se KTH Mathematics Online Royal Institute of Technology, Stockholm http://www.math.kth.se/online/ Kris,

More information

`çéóêáöüí=eåf=ommti=_^q=j _ìëáåéëë=^êí=qéåüåçäçöó=^_

`çéóêáöüí=eåf=ommti=_^q=j _ìëáåéëë=^êí=qéåüåçäçöó=^_ den gamla framtiden intro WEB 2.0 SOCIALA MEDIER har två barn och sambo ekonomie doktor, marknadsföring konsult / lärare / talare analys och IT-utveckling konversationsstrategier skolan och marknaden Mindshare,,

More information

Outline of this lecture G52CON: Concepts of Concurrency

Outline of this lecture G52CON: Concepts of Concurrency Outline of this lecture G52CON: Concepts of Concurrency Lecture 10 Synchronisation in Java Natasha Alechina School of Computer Science nza@cs.nott.ac.uk mutual exclusion in Java condition synchronisation

More information

Child allowance [Barnbidrag] and large family supplement [flerbarnstillägg] [Barnbidrag och flerbarnstillägg]

Child allowance [Barnbidrag] and large family supplement [flerbarnstillägg] [Barnbidrag och flerbarnstillägg] Child allowance [Barnbidrag] and large family supplement [flerbarnstillägg] [Barnbidrag och flerbarnstillägg] Child allowance is paid until the child attains the age of 16. After that, children who continue

More information

ESF Jämt. Swedish model for Gender Mainstreaming in ESF projects

ESF Jämt. Swedish model for Gender Mainstreaming in ESF projects ESF Jämt Swedish model for Gender Mainstreaming in ESF projects ESF Jämt ESF Jämt is the Swedish name of the County Administrative Boards joint investment. It aims at equality, gender equality and Gender

More information

Overview. CISC Developments. RISC Designs. CISC Designs. VAX: Addressing Modes. Digital VAX

Overview. CISC Developments. RISC Designs. CISC Designs. VAX: Addressing Modes. Digital VAX Overview CISC Developments Over Twenty Years Classic CISC design: Digital VAX VAXÕs RISC successor: PRISM/Alpha IntelÕs ubiquitous 80x86 architecture Ð 8086 through the Pentium Pro (P6) RJS 2/3/97 Philosophy

More information

Lecture 24 Systems Programming in C

Lecture 24 Systems Programming in C Lecture 24 Systems Programming in C A process is a currently executing instance of a program. All programs by default execute in the user mode. A C program can invoke UNIX system calls directly. A system

More information

Glosim: Global System Image for Cluster Computing

Glosim: Global System Image for Cluster Computing Glosim: Global System Image for Cluster Computing Hai Jin, Li Guo, Zongfen Han Internet and Cluster Computing Center Huazhong University of Science and Technology, Wuhan, 4374, China Abstract: This paper

More information

Beställ kläder med klubblogo

Beställ kläder med klubblogo Beställ kläder med klubblg Mens Lambswl Mens Lambswl Lammull, Pullver Herr Vee neck - 82364 Hunting Clacier Hunting Ruge * Cllege Red BRAEMAR VEE NECK Style N. 82364 BRAEMAR VEE NECK Style N. 82364 Tartan

More information

Programmation Systèmes Cours 7 IPC: FIFO

Programmation Systèmes Cours 7 IPC: FIFO Programmation Systèmes Cours 7 IPC: FIFO Stefano Zacchiroli zack@pps.jussieu.fr Laboratoire PPS, Université Paris Diderot - Paris 7 15 novembre 2011 URL http://upsilon.cc/zack/teaching/1112/progsyst/ Copyright

More information

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO Chapter 11: Input/Output Organisation Lesson 06: Programmed IO Objective Understand the programmed IO mode of data transfer Learn that the program waits for the ready status by repeatedly testing the status

More information

CSE543 - Introduction to Computer and Network Security. Module: Operating System Security

CSE543 - Introduction to Computer and Network Security. Module: Operating System Security CSE543 - Introduction to Computer and Network Security Module: Operating System Security Professor Trent Jaeger 1 OS Security So, you have built an operating system that enables user-space processes to

More information

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013

Masters programmes in Computer Science and Information Systems. Object-Oriented Design and Programming. Sample module entry test xxth December 2013 Masters programmes in Computer Science and Information Systems Object-Oriented Design and Programming Sample module entry test xxth December 2013 This sample paper has more questions than the real paper

More information

Heartbleed. or: I read the news, too. Martin R. Albrecht. Information Security Group, Royal Holloway, University of London

Heartbleed. or: I read the news, too. Martin R. Albrecht. Information Security Group, Royal Holloway, University of London Heartbleed or: I read the news, too Martin R. Albrecht Information Security Group, Royal Holloway, University of London XKCD #1354 XKCD #1354 XKCD #1354 XKCD #1354 XKCD #1354 XKCD #1354 RFC 6520: Transport

More information

More Repeatable Vulnerability Assessment An introduction

More Repeatable Vulnerability Assessment An introduction Försvarets Materielverk/CSEC 2008 Document ID CB-039 Issue 0.4 More Repeatable Vulnerability Assessment An introduction Helén Svensson 1 Section Agenda Background Introduction to the following aspects

More information

Shared Address Space Computing: Programming

Shared Address Space Computing: Programming Shared Address Space Computing: Programming Alistair Rendell See Chapter 6 or Lin and Synder, Chapter 7 of Grama, Gupta, Karypis and Kumar, and Chapter 8 of Wilkinson and Allen Fork/Join Programming Model

More information

Sjukförsäkring. If you are signed off sick for a long period. Include your family!

Sjukförsäkring. If you are signed off sick for a long period. Include your family! Sjukförsäkring If you are signed off sick for a long period Long-term sickness can have a considerable effect on your finances. Reduction in income due to long term sickness can often lead to financial

More information

Quiz I Solutions MASSACHUSETTS INSTITUTE OF TECHNOLOGY. 6.858 Fall 2012. Department of Electrical Engineering and Computer Science

Quiz I Solutions MASSACHUSETTS INSTITUTE OF TECHNOLOGY. 6.858 Fall 2012. Department of Electrical Engineering and Computer Science Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.858 Fall 2012 Quiz I Solutions 30 Grade for q1 25 20 15 10 5 0 0 10 20 30 40 50 60 70 80 90 100 Histogram

More information

Housing allowance for families with children [Bostadsbidrag till barnfamiljer]

Housing allowance for families with children [Bostadsbidrag till barnfamiljer] Housing allowance for families with children [Bostadsbidrag till barnfamiljer] Low-income families with children may be eligible for a housing allowance. The amount you receive depends on your income,

More information

Exploiting Trustzone on Android

Exploiting Trustzone on Android 1 Introduction Exploiting Trustzone on Android Di Shen(@returnsme) retme7@gmail.com This paper tells a real story about exploiting TrustZone step by step. I target an implementation of Trusted Execution

More information

Open Access and Stockholm University: The state of affairs at the Department of Computer and System Sciences.

Open Access and Stockholm University: The state of affairs at the Department of Computer and System Sciences. Open Access and Stockholm University: The state of affairs at the Department of Computer and System Sciences. Abstract: The aim of this paper is to present and inform about the current status of open access

More information

Tanden Care Provider Interfaces PreAssessmentSTB v3

Tanden Care Provider Interfaces PreAssessmentSTB v3 Tanden Care Provider Interfaces Integrationskrav ICC 2 (21) Table of contents 1 INTRODUCTION... 3 2 INTEGRATIONS... 4 3 INTEGRATION 1... 6 3.1 PREASSESSMENTSTB REQUEST... 6 3.1.1 Message and translation...

More information

Operating System Manual. Realtime Communication System for netx. Kernel API Function Reference. www.hilscher.com.

Operating System Manual. Realtime Communication System for netx. Kernel API Function Reference. www.hilscher.com. Operating System Manual Realtime Communication System for netx Kernel API Function Reference Language: English www.hilscher.com rcx - Kernel API Function Reference 2 Copyright Information Copyright 2005-2007

More information