Ada. Randki (spotkania) w Adzie. Model. U Ady. Zasady. task Buffer is entry Append (I: in integer); entry Take (I: out integer); end Buffer;

Size: px
Start display at page:

Download "Ada. Randki (spotkania) w Adzie. Model. U Ady. Zasady. task Buffer is entry Append (I: in integer); entry Take (I: out integer); end Buffer;"

Transcription

1 Model ZADANIE AKTYWNE :<:2ΰ8- &( Ada Randki (spotkania) w Adzie ZHM FLHΓ ZHM FLHΓ ZADANIE BIERNE 35=<-08- &( U Ady Zasady ZHM FLHΓ =DGDQLHVNαDGDVL ]HVSHF\ILNDFMLRUD]WUH FL 6SHF\ILNDFMDPR H]DZLHUDόW\ONRGHNODUDFMHZHM όdqjentries) task Buffer is entry Append (I: in integer); entry Take (I: out integer); end Buffer; =DGDQLHF]\QQHPR HZ\ZRαDόZHM FLHBuffer.Append(15) :WUH FL]DGDQLDELHUQHJRV RSLVDQHF]\QQR FLGRNRQ\ZDQHZ WUDNFLHUDQGNLSRSU]H]GDQHZHM FLH task body Buffer is {... } accept Append (I: in integer) do ^RSLVF]\QQR FL` end Append; {... } end Buffer; Ada str. 1

2 6\QFKURQL]DFMDPL G]\]DGDQLHPDNW\ZQ\PZ\ZRαXM F\P ZHM FLHD]DGDQLHPELHUQ\PV\PHWU\F]QHF]HNDQLH Wzajemne wykluczanie.rohmnl]zl ]DQH]LQVWUXNFMDPLaccept V UHDOL]RZDQHMDNR kolejki proste Semantyka randki 1. =DGDQLHF]\QQHZ\ZRαXM FHZHM FLHSU]HND]XMHSDUDPHWU\ aktualne in i inoutgr]dgdqldelhuqhjrl]dzlhv]dvl Z RF]HNLZDQLXQD]DNR F]HQLHUDQGNL 2. =DGDQLHELHUQHZ\NRQXMHLQVWUXNFMHZWUH FLRGSRZLHGQLHJR ZHM FLD 3. Parametry out i inoutv SU]HND]\ZDQHGR]DGDQLDF]\QQHJR 4. 5DQGNDNR F]\VL NRQW\QXDFMD]DGD Charakterystyka randki jako operacji pierwotnej Synchroniczna komunikacja bez bufowania $V\PHWU\F]QDLGHQW\ILNDFMD]DGD 'ZXNLHUXQNRZ\SU]HSα\ZGDQ\FK :\NRQ\ZDQLHFL JXLQVWUXNFML 6NαDGQLD Instrukcja when w1 DFFHSWZHM FLHGR,HQGZHM FLH instrukcje-poza-rejonem-krytycznym-1; when w2 DFFHSWZHM FLHGR,HQGZHM FLH instrukcje-poza-rejonem-krytycznym-2;... else I-inne; {terminate; lub delay T; I-inne;} end ; Ada str. 2

3 Semantyka 1. 6]XNDQLHRWZDUW\FKJDα ]LW\FK]SUDZG]LZ\PLGR]RUDPL-H OL ich nie ma az brak frazy elsewreα G 2. -H OLV ]DGDQLDF]\QQHRF]HNXM FHZNROHMNDFKSU]\ZHM FLDFK RWZDUW\FKJDα ]LWRUR]SRF]\QDVL UDQGND]pierwszym zadaniem w niedeterministyczniez\eudqhmjdα ]LRWZDUWHM 3. -H OLZV]\VWNLHNROHMNLZRWZDUW\FKJDα ]LDFKV SXVWHRUD]QLH ma else, delay ani terminate, to zadanie bierne zostaje ]DZLHV]RQH*G\W\ONRMDNLH ]DGDQLHF]\QQH]JαRVLFK όzhm FLD GRRWZDUWHMJDα ]LWRUR]SRF]\QDVL ]QLPUDQGNDXZDJD GR]RU\QLHV MX ZDUWR FLRZDQHF]\OL]ELyURWZDUW\FKJDα ]LQLH ]PLHQLDVL 4. Randka przebiega standardowo 5. 3R]DNR F]HQLXUDQGNL]DGDQLHELHUQHZ\NRQXMHinstrukcje-pozarejonem-krytycznym 6. Mamy else-h OLQLHPDRWZDUW\FKJDα ]LDOERNROHMNLZ RWZDUW\FKV SXVWHWRMHVWZ\NRQ\ZDQ\FL JLQVWUXNFMLI-inne 7. Mamy delay-h OLNROHMNLZRWZDUW\FKJDα ]LDFKV SXVWHWR zadanie bierne czeka, ale tylko T jednostek, a potem wykonuje I- inne 8. Mamy terminate:vnuyflhsrzrgxmh]dnr F]HQLH]ELRUX ]DGD MH OLLQVWUXNFMD jest zawieszona i wszystkie HZHQWXDOQH]DGDQLDDNW\ZQH]DNR F]\α\VL OXEWH F]HNDM Z ]JDα ]L terminate 3URJUDPRZDQLH]X \FLHP =Z\NαDUDQGNDLPSOHPHQWXMHPHFKDQL]P53&Remote Procedure Call). Fraza uogσlnia RPC Fraza delay implementuje ograniczony czas oczekiwania Ada str. 3

4 task body T is accept czujnik-1 do... ; accept czujnik-2 do... ; delay 0.1; milisekund Alarm; end ; end T; Fraza else MHVWUyZQRZD QDdelay z zerem. Implementuje rodzaj przepytywania (ang. pollingvsudzg F]\QLHPDNRPXQLNDWyZ GRSU]HWZRU]HQLDLMH OLQLHWRZ\NRQXMQRUPDOQHF]\QQR FL Kilkakrotne accept GODWHJRVDPHJRZHM FLD DFFHSW(GRHQG(QLHSDU]\VWHZ\ZRαDQLD DFFHSW(GRHQG(SDU]\VWHZ\ZRαDQLD Instrukcje po acceptprj E\όSXVWH7DNDIRUPDVαX \GR synchronizacji, np. kzystania z zasobu task body zasσb is accept Chce; accept Zwalnia; end zasσb;,qvwuxnfmhudqgnlprj ]DZLHUDόZHZQ WU]LQQHUDQGNLDOER Z\ZRαDQLDZHM όnrqvwuxnfmhwdnlhpdm ]QDF]Q VLα Z\UD]X Ada str. 4

5 6\QFKURQL]DFMDWU]HFK]DGD task body T1 is... DFFHSW6\QFKUGR7Z\ZRαXMHWRZHM FLH DFFHSW6\QFKU7Z\ZRαXMHWRZHM FLH end Synchr-2;... end T1; =DGDQLH7E G]LH]DZLHV]RQHGRSyW\GRSyNLQLHQDVW SLUDQGND ]7-H OL7]JαRVLVL SLHUZV]HGR7WRE G]LHRF]HNLZDαRZ NROHMFHZHM FLRZHMD SRMDZLVL 7RFRQDPFKRG]L Select w zadaniu czynnym =DGDQLHF]\QQHPR H]DZLHVLόVL MHG\QLHF]HNDM FQDMHGQR ZHM FLHQLHPDZ\ZRαD ZLHOXZHM όqdud] 3U]\NαDGQDZ\NRU]\VWDQLHRJUDQLF]RQHJRF]DVXRF]HNLZDQLDZ ]DGDQLXF]\QQ\P-H OLZRNUH ORQ\PF]DVLHVHNF]XMQLNQLH zareaguje, to zostanie poinfmowany operat task body T is Sens.sample (...); delay 1.0; -- w sekundach Notify-operat; end ; end T; $QNLHWRZDQLHNLONX]DGD REVαXJXM F\FKVHUZHUyZ]DGDQLH F]\QQHDQJD XMHVL ZUDQGN W\ONRZWHG\JG\VHUZHUMHVW Ada str. 5

6 QDW\FKPLDVWGRVW SQ\:W\PXM FLXMH OLMHVWNLONXF]HNDM F\FK VHUZHUyZWRUDQGNDRGE G]LHVL ]ND G\P task body T is Server-1.E (...); else null; end ; Server-2.E (...); else null; end ;... end T; 6SRWNDQLH]MHGQ\P]RF]HNXM F\FKVHUZHUyZ task body T is Server-1.E (...); else Server-2.E (...); else... end ; end ; end T; Priytety type Priities is (Low, Medium, High); task Server is entry Request (Priities) (...); Ada str. 6

7 end Server; task body Server is accept Request (High) (...)...; when Request (High) Count = 0 accept Request (Medium) (...)...; when Request (High) Count = 0 and Request (Medium) Count = 0 accept Request (Low) (...)...; end ; end Server; 6HUYHU5HTXHVW+LJKZ\ZRαDQLH Semaf package Mutex-Package; task type Simple-Mutex is entry Wait; entry Signal; end Simple-Mutex; task type Mutex is entry Init (N: in Integer); entry Wait; entry Signal; end Mutex; end Mutex-Package; package body Mutex-Package is task body Simple-Mutex is Ada str. 7

8 accept Wait; accept Signal; terminate; end ; end Simple-Mutex; task body Mutex is Count: Integer; accept Init (N: in Integer) do Count := N; end Init; when Count > 0 accept Wait do Count := Count - 1; end Wait; accept Signal do Count := Count + 1; end Signal; terminate; end ; end Mutex; end Mutex-Package; 6NαDGQLD$G\ Predefiniowane typy: Integer, Float, Character, Boolean, String Typy wyliczeniowe: type States is (Off, Run, Start); Ada str. 8

9 Tablice type Arr is array (1..100) of Integer; Rekdy type Rec is recd field1: Integer; field2: Boolean; end recd; :VND QLNL type Rec_Pointer is access Rec; Instrukcje if A > B then & $WHQ UHGQLNMHVWZD Q\ elsif A < B then C := B; else C := 0; end if; f I in A(I) := 0; while X > 0 X := X/2; X := X/2; exit when X <= 0; PakietWR]ELyUGHNODUDFMLGDQ\FKLSURFHGXUNWyU\PR QD RGG]LHOQLHNRPSLORZDόXPLHV]F]DόZELEOLRWHFHLXGRVW SQLDό LQQ\PSDNLHWRPE G SURJUDPRZLJαyZQHPX AtrybutWRIXQNFMDSU]HND]XM FDZDUWR όsuhghilqlrzdqhm ZLHONR FL]ZL ]DQHM]RELHNWHP S: String (1..80); Ada str. 9

10 if S Length < 50 then PQLHMQL HOHPZ6 S(S Last) := S(S First); -- wstaw na koniec, to co end if; QDSRF] WNX f I in S Range -- dla wszystkich elementσw w S S(I) := * ; Typ zadaniowy (task type): dla zadeklarowania kilku LGHQW\F]Q\FK]DGD GHNODUXMHVL W\S]DGDQLRZ\DQDVW SQLH ZLHOHZFLHOH WHJRW\SX Ada str. 10

Pro3 1 : listes chaînées

Pro3 1 : listes chaînées Initiation à l algorithmique, L2 2005-2006, JC Fournier 3.1 Pro3 1 : listes chaînées Spécification : 1 generic 2 type element i s private ; 3 package l i s t e s c h a i n is 4 5 type position is private

More information

Color Screen Phones: SIP-T48G and SIP-T46G with firmware version 73

Color Screen Phones: SIP-T48G and SIP-T46G with firmware version 73 This document provides detailed information on how to use ACD (automatic call distribution) feature on Yealink IP phones integrated with Star2Star platform. ACD enables organizations to manage a large

More information

ECE 3401 Lecture 7. Concurrent Statements & Sequential Statements (Process)

ECE 3401 Lecture 7. Concurrent Statements & Sequential Statements (Process) ECE 3401 Lecture 7 Concurrent Statements & Sequential Statements (Process) Concurrent Statements VHDL provides four different types of concurrent statements namely: Signal Assignment Statement Simple Assignment

More information

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected

South East of Process Main Building / 1F. North East of Process Main Building / 1F. At 14:05 April 16, 2011. Sample not collected At 14:05 April 16, 2011 At 13:55 April 16, 2011 At 14:20 April 16, 2011 ND ND 3.6E-01 ND ND 3.6E-01 1.3E-01 9.1E-02 5.0E-01 ND 3.7E-02 4.5E-01 ND ND 2.2E-02 ND 3.3E-02 4.5E-01 At 11:37 April 17, 2011 At

More information

This copy is for personal use only - distribution prohibited.

This copy is for personal use only - distribution prohibited. J Stoma 2013; 66, 4: 551-565 O R I GE IDNI AT L O RAIRATLI C L E PubMed search methodology 1 2 1 Department of Oral Surgery, Pomeranian Medical University, Szczecin, Poland Head: dr hab. 2 Head: lek. stom.

More information

COMP MIPS instructions 3 Feb. 10, 2016

COMP MIPS instructions 3 Feb. 10, 2016 In the past two lectures, we discussed MIPS operations on integers. Today we will consider a few data structures that you are familiar with, namely arrays and strings, and discuss how to implement them

More information

Introduction to Python

Introduction to Python Caltech/LEAD Summer 2012 Computer Science Lecture 2: July 10, 2012 Introduction to Python The Python shell Outline Python as a calculator Arithmetic expressions Operator precedence Variables and assignment

More information

12. A B C A B C A B C 1 A B C A B C A B C JK-FF NETr

12. A B C A B C A B C 1 A B C A B C A B C JK-FF NETr 2..,.,.. Flip-Flops :, Flip-Flops, Flip Flop. ( MOD)... -8 8, 7 ( ).. n Flip-Flops. n Flip-Flops : 2 n. 2 n, Modulo. (-5) -4 ( -), (-) - ( -).. / A A A 2 3 4 5 MOD-5 6 MOD-6 7 MOD-7 8 9 / A A A 2 3 4 5

More information

Awaiting Information (AI) Reasons. July 2016

Awaiting Information (AI) Reasons. July 2016 July 2016 135 77 75 3 23 452 806 403 535 45 8 2 127 315 1,951 219 255 416 130 1 7 445 775 443 June 2016 620 190 97 86 8 26 942 463 641 7 2 51 63 397 1,799 262 250 401 141 5 3 522 754 425 May 2016 142 549

More information

Archivio Sp. z o.o. Schema XSD opisująca typy dokumentów obsługiwane w Systemie Invo24

Archivio Sp. z o.o. Schema XSD opisująca typy dokumentów obsługiwane w Systemie Invo24 Archivio Sp. z o.o. Schema XSD opisująca typy dokumentów obsługiwane w Systemie Invo24 Wersja 1.0 Archivio Sp. z o.o. Strona 1

More information

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia smith@backendmedia.com

database abstraction layer database abstraction layers in PHP Lukas Smith BackendMedia smith@backendmedia.com Lukas Smith database abstraction layers in PHP BackendMedia 1 Overview Introduction Motivation PDO extension PEAR::MDB2 Client API SQL syntax SQL concepts Result sets Error handling High level features

More information

Facebook Twitter YouTube Google Plus Website Email

Facebook Twitter YouTube Google Plus Website Email PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute

More information

Ada-95 dla programistów C/C++

Ada-95 dla programistów C/C++ Introduction Dariusz Wawrzyniak (na podst. oprac. Simona Johnstona) Part I Ada Basics Outline 1 2 Ada 3 Ada outline 1 2 Ada 3 Ada Ada is case insensitive, so begin BEGIN Begin are all the same. The tick

More information

Problem 1. CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class

Problem 1. CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class CS 61b Summer 2005 Homework #2 Due July 5th at the beginning of class This homework is to be done individually. You may, of course, ask your fellow classmates for help if you have trouble editing files,

More information

Typy danych. Data types: Literals:

Typy danych. Data types: Literals: Lab 10 MIPS32 Typy danych Data types: Instructions are all 32 bits byte(8 bits), halfword (2 bytes), word (4 bytes) a character requires 1 byte of storage an integer requires 1 word (4 bytes) of storage

More information

Wstęp do programowania w języku PHP

Wstęp do programowania w języku PHP Wstęp do programowania w języku PHP Programowanie obiektowe PHP OOP O czym jest ta prezentacja wstęp do programowania obiektowego cechy języka php przestrzenie nazw composer automatyczne ładowanie klas

More information

Technical Support Set-up Procedure

Technical Support Set-up Procedure Technical Support Set-up Procedure How to Setup the Amazon S3 Application on the DSN-320 Amazon S3 (Simple Storage Service) is an online storage web service offered by AWS (Amazon Web Services), and it

More information

Distributed Network Management Using SNMP, Java, WWW and CORBA

Distributed Network Management Using SNMP, Java, WWW and CORBA Distributed Network Management Using SNMP, Java, WWW and CORBA André Marcheto Augusto Hack Augusto Pacheco Augusto Verzbickas ADMINISTRATION AND MANAGEMENT OF COMPUTER NETWORKS - INE5619 Federal University

More information

Certified PHP/MySQL Web Developer Course

Certified PHP/MySQL Web Developer Course Course Duration : 3 Months (120 Hours) Day 1 Introduction to PHP 1.PHP web architecture 2.PHP wamp server installation 3.First PHP program 4.HTML with php 5.Comments and PHP manual usage Day 2 Variables,

More information

Understand State Information in Web Applications

Understand State Information in Web Applications Understand State Information in Web Applications Lesson Overview How does ASP.NET state management work? In this lesson, you will review these ASP.NET terms: View state Control state Application state

More information

TCP/IP Networking, Part 2: Web-Based Control

TCP/IP Networking, Part 2: Web-Based Control TCP/IP Networking, Part 2: Web-Based Control Microchip TCP/IP Stack HTTP2 Module 2007 Microchip Technology Incorporated. All Rights Reserved. Building Embedded Web Applications Slide 1 Welcome to the next

More information

Organization of Records in Blocks

Organization of Records in Blocks Organization of Records in Blocks Read Sec. 4.2 Riguzzi et al. Sistemi Informativi Slides derived from those by Hector Garcia-Molina 1 Topic How to lay out records on blocks 2 To represent: Integer (short):

More information

What is COM/DCOM. Distributed Object Systems 4 COM/DCOM. COM vs Corba 1. COM vs. Corba 2. Multiple inheritance vs multiple interfaces

What is COM/DCOM. Distributed Object Systems 4 COM/DCOM. COM vs Corba 1. COM vs. Corba 2. Multiple inheritance vs multiple interfaces Distributed Object Systems 4 COM/DCOM Piet van Oostrum Sept 18, 2008 What is COM/DCOM Component Object Model Components (distributed objects) à la Microsoft Mainly on Windows platforms Is used in large

More information

Reach 4 million Unity developers

Reach 4 million Unity developers Reach 4 million Unity developers with your Android library Vitaliy Zasadnyy Senior Unity Dev @ GetSocial Manager @ GDG Lviv Ankara Android Dev Days May 11-12, 2015 Why Unity? Daily Users 0 225 M 450 M

More information

WOW! Version 1.2. WOW101-SP-01 - Rev. D December, Able-Baker Automation P.O. Box 6368 Moraga, California

WOW! Version 1.2. WOW101-SP-01 - Rev. D December, Able-Baker Automation P.O. Box 6368 Moraga, California WOW! Protocol Version 1.2 WOW101-SP-01 - Rev. D December, 2009 Able-Baker Automation P.O. Box 6368 Moraga, California 94570 1-877-444-2253 1-510-601-9396 Revision Notes Able-Baker Automation revisions:

More information

Client SuiteScript Developer s Guide

Client SuiteScript Developer s Guide Client SuiteScript Developer s Guide Copyright NetSuite, Inc. 2005 All rights reserved. January 18, 2007 This document is the property of NetSuite, Inc., and may not be reproduced in whole or in part without

More information

In this example the length of the vector is determined by D length and used for the index variable.

In this example the length of the vector is determined by D length and used for the index variable. Loops Loop statements are a catagory of control structures that allow you to specify repeating sequences of behavior in a circuit. There are three primary types of loops in VHDL: for loops, while loops,

More information

The Designer's Guide to VHDL

The Designer's Guide to VHDL The Designer's Guide to VHDL Third Edition Peter J. Ashenden EDA CONSULTANT, ASHENDEN DESIGNS PTY. LTD. ADJUNCT ASSOCIATE PROFESSOR, ADELAIDE UNIVERSITY AMSTERDAM BOSTON HEIDELBERG LONDON m^^ yj 1 ' NEW

More information

WYPE NIA UCZENNICA/UCZE SZKO Y PODSTAWOWEJ WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO. KLASA(np. 4.a,5.b,6.c)

WYPE NIA UCZENNICA/UCZE SZKO Y PODSTAWOWEJ WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO. KLASA(np. 4.a,5.b,6.c) WYPE NIA UCZENNICA/UCZE SZKO Y PODSTAWOWEJ WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO KLASA(np. 4.a,5.b,6.c) CZAS: 45 MINUT 24 MAJA 2010 R. OGÓLNOPOLSKI STANDARYZOWANY SPRAWDZIAN Z J ZYKA ANGIELSKIEGO

More information

Channel Access Client Programming. Andrew Johnson Computer Scientist, AES-SSG

Channel Access Client Programming. Andrew Johnson Computer Scientist, AES-SSG Channel Access Client Programming Andrew Johnson Computer Scientist, AES-SSG Channel Access The main programming interface for writing Channel Access clients is the library that comes with EPICS base Written

More information

Basics of I/O Streams and File I/O

Basics of I/O Streams and File I/O Basics of This is like a cheat sheet for file I/O in C++. It summarizes the steps you must take to do basic I/O to and from files, with only a tiny bit of explanation. It is not a replacement for reading

More information

BLADE 12th Generation. Rafał Olszewski. Łukasz Matras

BLADE 12th Generation. Rafał Olszewski. Łukasz Matras BLADE 12th Generation Rafał Olszewski Łukasz Matras Jugowice, 15-11-2012 Gl o b a l M a r k e t i n g Dell PowerEdge M-Series Blade Server Portfolio M-Series Blades couple powerful computing capabilities

More information

STUDIO MODELING BASICS

STUDIO MODELING BASICS STUDIO MODELING BASICS Interstage BPM v11.2 1 Copyright 2010 FUJITSU LIMITED Process Designer WYSIWYG Editor Palette Overview Properties Outline Interstage BPM v11.2 2 Copyright 2010 FUJITSU LIMITED User

More information

20 Using Scripts. (Programming without Parts) 20-1

20 Using Scripts. (Programming without Parts) 20-1 20 Using Scripts (Programming without Parts) This chapter explains the basics of creating and using programming scripts in GP-Pro EX. Please start by reading 20.1 Settings Menu (page 20-2) and then turn

More information

Chapter 6 Concurrent Programming

Chapter 6 Concurrent Programming Chapter 6 Concurrent Programming Outline 6.1 Introduction 6.2 Monitors 6.2.1 Condition Variables 6.2.2 Simple Resource Allocation with Monitors 6.2.3 Monitor Example: Circular Buffer 6.2.4 Monitor Example:

More information

Lesson-12: Inter process communication

Lesson-12: Inter process communication INTER-PROCESS COMMUNICATION AND SYNCHRONISATION: Lesson-12: Inter process communication 1 1. Inter Process Communication 2 Inter Processor Communication Inter processor communication in a multiprocessor

More information

1. Constants. 2. Variables. 3. Reserved words or key words. 4. Constants. Character set in C

1. Constants. 2. Variables. 3. Reserved words or key words. 4. Constants. Character set in C Character set in C We should use only the following characters in writing a C program. These characters can be combined to create C words. Alphabet: A, B, C, D.. Z, a, b, c, d..z Numeric digits: 0, 1,

More information

RT Language Classes. Real-Time Programming Languages (ADA and Esterel as Examples) Implementation. Synchroneous Systems Synchronous Languages

RT Language Classes. Real-Time Programming Languages (ADA and Esterel as Examples) Implementation. Synchroneous Systems Synchronous Languages RT Language Classes Real-Time Programming Languages (ADA and Esterel as Examples) HLL suitable for RT-Analysis (e.g., rms or time-driven) Synchronous HLL (clock driven) Esterel Lustre (State Charts) RT-Euclid

More information

GCE. Computing. Mark Scheme for January 2011. Advanced Subsidiary GCE Unit F452: Programming Techniques and Logical Methods

GCE. Computing. Mark Scheme for January 2011. Advanced Subsidiary GCE Unit F452: Programming Techniques and Logical Methods GCE Computing Advanced Subsidiary GCE Unit F452: Programming Techniques and Logical Methods Mark Scheme for January 2011 Oxford Cambridge and RSA Examinations OCR (Oxford Cambridge and RSA) is a leading

More information

Form Validation. Server-side Web Development and Programming. What to Validate. Error Prevention. Lecture 7: Input Validation and Error Handling

Form Validation. Server-side Web Development and Programming. What to Validate. Error Prevention. Lecture 7: Input Validation and Error Handling Form Validation Server-side Web Development and Programming Lecture 7: Input Validation and Error Handling Detecting user error Invalid form information Inconsistencies of forms to other entities Enter

More information

Strings in C++ and Java. Questions:

Strings in C++ and Java. Questions: Strings in C++ and Java Questions: 1 1. What kind of access control is achieved by the access control modifier protected? 2 2. There is a slight difference between how protected works in C++ and how it

More information

Final Exam Review. CS 1428 Fall Jill Seaman. Final Exam

Final Exam Review. CS 1428 Fall Jill Seaman. Final Exam Final Exam Review CS 1428 Fall 2011 Jill Seaman 1 Final Exam Friday, December 9, 11:00am to 1:30pm Derr 241 (here) Closed book, closed notes, clean desk Comprehensive (covers entire course) 25% of your

More information

Engineering Problem Solving with C++, Etter

Engineering Problem Solving with C++, Etter Engineering Problem Solving with C++, Etter Chapter 7 Strings 12-11-13 1 Strings Character Strings The string Class. 2 C style strings functions defined in cstring CHARACTER STRINGS 3 C Style Character

More information

PL / SQL Basics. Chapter 3

PL / SQL Basics. Chapter 3 PL / SQL Basics Chapter 3 PL / SQL Basics PL / SQL block Lexical units Variable declarations PL / SQL types Expressions and operators PL / SQL control structures PL / SQL style guide 2 PL / SQL Block Basic

More information

A POSIX-Ada Interface for Application-Defined Scheduling

A POSIX-Ada Interface for Application-Defined Scheduling A POSIX-Ada Interface for Application-Defined Scheduling By: Mario Aldea Rivas Michael González Harbour (aldeam@unican.es) (mgh@unican.es) Ada-Europe 2002 Vienna, Austria, June 17-21, 2002 4 GRUPO DE COMPUTADORES

More information

Intro DNS, security problems SPARK IRONSIDES Experimental results (previous, new) Lessons in humility Hitting the sweet spot Conclusions, future work

Intro DNS, security problems SPARK IRONSIDES Experimental results (previous, new) Lessons in humility Hitting the sweet spot Conclusions, future work Intro DNS, security problems SPARK IRONSIDES Experimental results (previous, new) Lessons in humility Hitting the sweet spot Conclusions, future work DNS (internet Domain Name System) is the protocol for

More information

ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control

ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control ESCI 386 IDL Programming for Advanced Earth Science Applications Lesson 6 Program Control Reading: Bowman, Chapters 16 CODE BLOCKS A code block consists of several lines of code contained between a BEGIN

More information

EE282 Computer Architecture and Organization Midterm Exam February 13, 2001. (Total Time = 120 minutes, Total Points = 100)

EE282 Computer Architecture and Organization Midterm Exam February 13, 2001. (Total Time = 120 minutes, Total Points = 100) EE282 Computer Architecture and Organization Midterm Exam February 13, 2001 (Total Time = 120 minutes, Total Points = 100) Name: (please print) Wolfe - Solution In recognition of and in the spirit of the

More information

ClientAce WPF Project Example

ClientAce WPF Project Example Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

Systems Architecture ARM Assembler Strings

Systems Architecture ARM Assembler Strings Systems Architecture ARM Assembler Strings Strings p. 1/16 Characters or Strings A string is a sequence of characters ASCII 7-bit (American) character codes One byte per character (char) Unicode International

More information

6. SEQUENTIAL AND CONCURRENT STATEMENTS IN THE VHDL LANGUAGE

6. SEQUENTIAL AND CONCURRENT STATEMENTS IN THE VHDL LANGUAGE Structure of Computer Systems Laboratory No. 6 1 6. SEQUENTIAL AND CONCURRENT STATEMENTS IN THE VHDL LANGUAGE A VHDL description has two domains: a sequential domain and a concurrent domain. The sequential

More information

PROJECT 3 - MULTITHREADED WEB SPIDER Computer Systems Principles. October 28, 2010

PROJECT 3 - MULTITHREADED WEB SPIDER Computer Systems Principles. October 28, 2010 PROJECT 3 - MULTITHREADED WEB SPIDER Computer Systems Principles Emery Berger Mark Corner October 28, 2010 1 Overview Goals of this assignment: understanding threads; understanding mutual exclusion; using

More information

DM74LS151 1-of-8 Line Data Selector/Multiplexer

DM74LS151 1-of-8 Line Data Selector/Multiplexer 1-of-8 Line Data Selector/Multiplexer General Description This data selector/multiplexer contains full on-chip decoding to select the desired data source. The DM74LS151 selects one-of-eight data sources.

More information

ECS 15. Strings, input

ECS 15. Strings, input ECS 15 Strings, input Outline Strings, string operation Converting numbers to strings and strings to numbers Getting input Running programs by clicking on them Strings in English Dictionary: string (strĭng)

More information

PHP MySQL Course Details

PHP MySQL Course Details PHP MySQL Course Details By Besant Technologies Course Name Category Venue PHP MySQL Scripting Language & Web Development Besant Technologies No.24, Nagendra Nagar, Velachery Main Road, Address Velachery,

More information

PL/SQL MOCK TEST PL/SQL MOCK TEST I

PL/SQL MOCK TEST PL/SQL MOCK TEST I http://www.tutorialspoint.com PL/SQL MOCK TEST Copyright tutorialspoint.com This section presents you various set of Mock Tests related to PL/SQL. You can download these sample mock tests at your local

More information

Lecture 4: Writing shell scripts

Lecture 4: Writing shell scripts Handout 5 06/03/03 1 Your rst shell script Lecture 4: Writing shell scripts Shell scripts are nothing other than les that contain shell commands that are run when you type the le at the command line. That

More information

Arithmetic Packages- Introduction

Arithmetic Packages- Introduction Arithmetic Packages- Introduction It would be very painful if when building a counter we had to think about all the internals We need an adder etc.» How do we build the adder? Would be much better if we

More information

Data Masking. Procedure

Data Masking. Procedure Procedure Author: G S Chapman Date: October 2008 Version: 1.1 Location of Document: DOCUMENT HISTORY Version Date Changed By: Remarks 1.1 20/10/2008 G S Chapman This version DOCUMENT DISTRIBUTION Copy

More information

PRI-(BASIC2) Preliminary Reference Information Mod date 3. Jun. 2015

PRI-(BASIC2) Preliminary Reference Information Mod date 3. Jun. 2015 PRI-(BASIC2) Table of content Introduction...2 New Comment...2 Long variable...2 Function definition...3 Function declaration...3 Function return value...3 Keyword return inside functions...4 Function

More information

Aras Corporation. 2005 Aras Corporation. All rights reserved. Notice of Rights. Notice of Liability

Aras Corporation. 2005 Aras Corporation. All rights reserved. Notice of Rights. Notice of Liability Aras Corporation 2005 Aras Corporation. All rights reserved Notice of Rights All rights reserved. Aras Corporation (Aras) owns this document. No part of this document may be reproduced or transmitted in

More information

Integrating R with the Go programming language using interprocess communication

Integrating R with the Go programming language using interprocess communication Integrating R with the Go programming language using interprocess communication Christoph Best, Karl Millar, Google Inc. chbest@google.com Statistical software in practice & production Production environments!!!=

More information

Distributed Programming CSCI 201 Principles of Software Development

Distributed Programming CSCI 201 Principles of Software Development Distributed Programming CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline Distributed Programming RMI CORBA Web Services Test Yourself USC CSCI 201L Remote

More information

Data encoding for SDL

Data encoding for SDL SDL Forum Society Data encoding for SDL in ITU-T Rec.. Z.104 Rick Reed TSE Ltd Purpose Define data encoding for o Communication between components o Implementation by different tools Versions Platform

More information

Writing cleaner and more powerful SAS code using macros. Patrick Breheny

Writing cleaner and more powerful SAS code using macros. Patrick Breheny Writing cleaner and more powerful SAS code using macros Patrick Breheny Why Use Macros? Macros automatically generate SAS code Macros allow you to make more dynamic, complex, and generalizable SAS programs

More information

Concurrent Programming

Concurrent Programming Concurrent Programming Shared Memory Passing the baton Monitors Verónica Gaspes www.hh.se/staff/vero CERES, November 2, 2007 ceres Outline 1 Recap 2 Readers & Writers Readers & writers (mutual exclusion)

More information

Controlling the User Interface Use property nodes, invoke nodes, and control references to programmatically control front panel objects.

Controlling the User Interface Use property nodes, invoke nodes, and control references to programmatically control front panel objects. Controlling the User Interface Use property nodes, invoke nodes, and control references to programmatically control front panel objects. A. VI Server Architecture B. Control References C. Property Nodes

More information

aan n a l i a z a l i z a Bankowy

aan n a l i a z a l i z a Bankowy Bankowy kalejdoskop analiza W służbie marketingu? BADANIE satysfakcja dziennikarzy Co się zmieniło? Po macoszemu Ilość nie znaczy jakość Bankowy piarowiec czyli kto? PR w banku z czym to się je? Współpraca

More information

CS 378 Big Data Programming. Lecture 9 Complex Writable Types

CS 378 Big Data Programming. Lecture 9 Complex Writable Types CS 378 Big Data Programming Lecture 9 Complex Writable Types Review Assignment 4 - CustomWritable QuesIons/issues? Hadoop Provided Writables We ve used several Hadoop Writable classes Text LongWritable

More information

Standard C Input/Output. Output: printf() Table of Contents

Standard C Input/Output. Output: printf() Table of Contents Standard C Input/Output 1 Output: printf() 2 Table of Contents Output: printf( ) - syntax & sematics Output: printf( ) - examples Output: printf( ) - format control Screen / Printer Control Input: scanf(

More information

A Brief Introduction to MySQL

A Brief Introduction to MySQL A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term

More information

Creating a Simple, Multithreaded Chat System with Java

Creating a Simple, Multithreaded Chat System with Java Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate

More information

Dice. David Watkins Emily Chen Khaled Atef Phillip Schiffrin. djw2146 ec2805 kaa2168 pjs2186. Manager System Architect Testing Language Guru

Dice. David Watkins Emily Chen Khaled Atef Phillip Schiffrin. djw2146 ec2805 kaa2168 pjs2186. Manager System Architect Testing Language Guru Dice David Watkins Emily Chen Khaled Atef Phillip Schiffrin djw2146 ec2805 kaa2168 pjs2186 Manager System Architect Testing Language Guru September 30 th, 2015 1 DESCRIPTION Dice is a distributed systems

More information

C Primer. Fall Introduction C vs. Java... 1

C Primer. Fall Introduction C vs. Java... 1 CS 33 Intro Computer Systems Doeppner C Primer Fall 2016 Contents 1 Introduction 1 1.1 C vs. Java.......................................... 1 2 Functions 1 2.1 The main() Function....................................

More information

LabVIEW Day 3: Arrays and Clusters

LabVIEW Day 3: Arrays and Clusters LabVIEW Day 3: Arrays and Clusters Vern Lindberg By now you should be getting used to LabVIEW. You should know how to Create a Constant, Control, or Indicator. I will assume you know how to create a new

More information

Monitors to Implement Semaphores

Monitors to Implement Semaphores (Chapter 5.2) Monitors to Implement Semaphores Concurrency: monitors & condition synchronization 1 Monitors & Condition Synchronization Concepts: monitors: encapsulated data + access procedures mutual

More information

Classe AGI - PHP 5.x

Classe AGI - PHP 5.x Classe AGI - PHP 5.x Contents Package AGI Procedural Elements 2 agi_lib_v5x.php 2 Package AGI Classes 3 Class AGI 3 Constructor construct 3 Method exec_command 4 Method getagi_env 4 Method getdebug 4 Method

More information

Chapter 8 Statement-Level Control Structures Chapter 8 Topics

Chapter 8 Statement-Level Control Structures Chapter 8 Topics Chapter 8 Statement-Level Control Structures Chapter 8 Topics Introduction Selection Statements Iterative Statements Unconditional Branching Chapter 8 Statement-Level Control Structures Introduction A

More information

PHP. Intro, Syntax, Variables, Echo, Data Types

PHP. Intro, Syntax, Variables, Echo, Data Types PHP Intro, Syntax, Variables, Echo, Data Types Introduction PHP scripts are executed on the server. What You Should Already Know Before you continue you should have a basic understanding of the following:

More information

Analysis of Binary Search algorithm and Selection Sort algorithm

Analysis of Binary Search algorithm and Selection Sort algorithm Analysis of Binary Search algorithm and Selection Sort algorithm In this section we shall take up two representative problems in computer science, work out the algorithms based on the best strategy to

More information

Simple Fortran Multitasking Library for the Apple Macintosh Computer

Simple Fortran Multitasking Library for the Apple Macintosh Computer Simple Fortran Multitasking Library for the Apple Macintosh Computer Viktor K. Decyk Department of Physics and Astronomy UCLA Los Angeles, California 90095-1547 decyk@physics.ucla.edu The Apple Macintosh

More information

Load balancing and failover For kbmmw v. 2.50+ ProPlus and Enterprise Editions

Load balancing and failover For kbmmw v. 2.50+ ProPlus and Enterprise Editions Load balancing and failover For kbmmw v. 2.50+ ProPlus and Enterprise Editions Introduction... 2 Centralized load balancing... 3 Distributed load balancing... 4 Fail over... 5 Client controlled fail over...

More information

Field Properties Quick Reference

Field Properties Quick Reference Field Properties Quick Reference Data types The following table provides a list of the available data types in Microsoft Office Access 2007, along with usage guidelines and storage capacities for each

More information

PostgreSQL Functions By Example

PostgreSQL Functions By Example Postgre joe.conway@credativ.com credativ Group January 20, 2012 What are Functions? Introduction Uses Varieties Languages Full fledged SQL objects Many other database objects are implemented with them

More information

Component Based Rapid OPC Application Development Platform

Component Based Rapid OPC Application Development Platform Component Based Rapid OPC Application Development Platform Jouni Aro Prosys PMS Ltd, Tekniikantie 21 C, FIN-02150 Espoo, Finland Tel: +358 (0)9 2517 5401, Fax: +358 (0) 9 2517 5402, E-mail: jouni.aro@prosys.fi,

More information

Jzyk C++ cz 4. Jarosław Gramacki Instytut Informatyki i Elektroniki ' (%)* ) ' &+ (,% &*-

Jzyk C++ cz 4. Jarosław Gramacki Instytut Informatyki i Elektroniki ' (%)* ) ' &+ (,% &*- Jzyk C++ cz 4 Jarosław Gramacki Instytut Informatyki i Elektroniki # $ %& % ' (%)* ) ' &+ (,% &*-.,& & * * *void main() Stack s1; s1.init(); s1.push( 5 ); s1.print_stack(); Stack s1;??? s1.push( 5 ); s1.print_stack();

More information

OPENBARE ZITTING 1. U ni f o r m e a l g e m e ne p o l i t i e v e r o r d e ni ng e n p u nc t u e l e i m p l e m e nt a t i e GAS ( g e m e e nt e l i j k e a d m i ni s t r a t i e v e s a nc t i

More information

1 Purpose. 2 Overview. 3 The Physical Layer. 4 USB-to-RS-232 Adapter. Serial Integration User s Guide

1 Purpose. 2 Overview. 3 The Physical Layer. 4 USB-to-RS-232 Adapter. Serial Integration User s Guide 1 Purpose The purpose of this document is to provide guidance for configuring and understanding the exacqvision serial interface. This guide provides step-by-step instructions and also explains more complex

More information

Part I. Multiple Choice Questions (2 points each):

Part I. Multiple Choice Questions (2 points each): Part I. Multiple Choice Questions (2 points each): 1. Which of the following is NOT a key component of object oriented programming? (a) Inheritance (b) Encapsulation (c) Polymorphism (d) Parallelism ******

More information

Sample SNMP commands. SNMP Get Request Get Cooling Setpoint MIB Object ID - (1.3.6.1.4.1.26609.2.1.1.2) Community string - private

Sample SNMP commands. SNMP Get Request Get Cooling Setpoint MIB Object ID - (1.3.6.1.4.1.26609.2.1.1.2) Community string - private Sample SNMP commands SNMP Get Request Get Cooling Setpoint MIB Object ID - (1.3.6.1.4.1.26609.2.1.1.2) 0 0x30 SNMP start sequence 1 0x2C SNMP sequence len 2 0x02 Integer type SNMP version 3 0x01 Length

More information

Better PHP Security Learning from Adobe. Bill Condo @mavrck PHP Security: Adobe Hack

Better PHP Security Learning from Adobe. Bill Condo @mavrck PHP Security: Adobe Hack Better PHP Security Learning from Adobe Quickly, about me Consultant! Senior Engineer! Developer! Senior Developer! Director of Tech! Hosting Manager! Support Tech 2014: Digital Director Lunne Marketing

More information

WYPE NIA UCZENNICA/UCZE GIMNAZJUM WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO. KLASA(np. 1.a,2.b,3.c)

WYPE NIA UCZENNICA/UCZE GIMNAZJUM WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO. KLASA(np. 1.a,2.b,3.c) WYPE NIA UCZENNICA/UCZE GIMNAZJUM WYPE NIJ DRUKOWANYMI LITERAMI. IMI NAZWISKO KLASA(np. 1.a,2.b,3.c) CZAS: 45 MINUT 24 MAJA 2010 R. OGÓLNOPOLSKI STANDARYZOWANY SPRAWDZIAN Z J ZYKA ANGIELSKIEGO DIAGNOZUJ

More information

Lecture 4. Announcements:

Lecture 4. Announcements: Announcements: Lecture 4 HW1 posted on Saturday morning. We gave a little over a week. We are going to discuss relevant material over the next two lectures. Lab1 posted. But if you start doing it, you

More information

Writing Control Structures

Writing Control Structures Writing Control Structures Copyright 2006, Oracle. All rights reserved. Oracle Database 10g: PL/SQL Fundamentals 5-1 Objectives After completing this lesson, you should be able to do the following: Identify

More information

ENTRAINMENT OF PARTICLES IN THE MECHANOBR LABORATORY FLOTATION MACHINE

ENTRAINMENT OF PARTICLES IN THE MECHANOBR LABORATORY FLOTATION MACHINE Prace Naukowe Instytutu Górnictwa Nr 16 Politechniki :URFáDZVNLHM Nr 16 6WXGLD L DWHULDá\ Nr 3 24 -DQ '5=

More information

SenseLink TM. End-Point Controller. Addendum

SenseLink TM. End-Point Controller. Addendum SenseLink TM End-Point Controller Addendum MKS Instruments, Inc. Control & Information Technology Products Group 3350 Scott Blvd Bldg 4 Santa Clara, CA 95054 Main: 408.235.7620 Fax: 408.235.7625 SenseLink

More information

Python as a First Programming Language

Python as a First Programming Language STEMBOPS Justin Stevens and Giselle Serate Page 1 Python as a First Programming Language Author: Justin Stevens Giselle Serate 1 Introduction STEMBOPS Davidson Academy of Nevada University of Nevada, Reno

More information