OCC and Its Variants. Jan Lindström. Helsinki 7. November Seminar on real-time systems UNIVERSITY OF HELSINKI. Department of Computer Science

Size: px
Start display at page:

Download "OCC and Its Variants. Jan Lindström. Helsinki 7. November Seminar on real-time systems UNIVERSITY OF HELSINKI. Department of Computer Science"

Transcription

1 OCC and Its Variants Jan Lindström Helsinki 7. November 1997 Seminar on real-time systems UNIVERSITY OF HELSINKI Department o Computer Science

2 Contents 1 Introduction 1 2 Optimistic Concurrency Control Backward Validation Forward Validation Unnecessary restarts Optimistic Concurrency Control protocols WAIT OCC-TI OCC-DA Conclusions 13 Reerences 14

3 1 1 Introduction Real-time database systems (RTDBS) are database systems which must process transactions within deinite time bounds usually deined in the orm o a deadline. Failure to complete transactions beore their deadlines reatly derades the useulness o the transactions. The applications o RTDBS can be ound in prorams tradin in the stock market, computer interated manuacturin, military command and control manaement, and network manaement systems. In RTDBS, the primary perormance criterion is timeliness level and not averae response time or throuhput. Schedulin o transactions is driven by priority considerations rather than airness considerations. Perormance oals o RTDBSs is dierent rom those or conventional database systems. Thereore RTDBSs require new transaction manaement methods to satisy the perormance oals. Considerable research has recently been devoted to desinin concurrency control alorithms or RTDBSs and to evaluatin their perormance. Most o these studies use the serializability [EGLT76] or maintainin data consistency. Because at present there is no eneral-purpose consistency criterion available that is less strinent than serializability. New consistency criterion should be as obviously correct and easily implementable as serializability. Most o the proposed alorithms are based on one o the two basic mechanisms: two-phase lockin (2PL) [EGLT76] and optimistic protocols (OPT) [KR81]. Conventional concurrency control protocols are oten unsatisactory or real-time databases, because they do not observe transaction priorities. In this paper we concertrate on optimistic protocols. The remainder o this paper is oranized in the ollowin ashion: Section 2 reviews principles o optimistic concurrency control. In Section 3, we present classical optimistic protocols and two new OCC protocols in detail. Finally, Section 3 summarizes the main conclusions o this study.

4 2 2 Optimistic Concurrency Control In Optimistic Concurrency Control (OCC) [KR81], transactions are allowed to execute unhindered until they reach their commit point, at which time they are validated. The execution o a transaction consists o three phases, read phase, validation phase, and write phase. The read phase is the normal execution o the transaction. Write operations are perormed on the private data copies in the local workspace o the transaction. This kind o operation is called pre-write. Identiication o all read data items are stored in a readset. Identiication o all pre-written data items are stored in a writeset. Readset and writeset are used to check conlicts aainst other active transactions. The validation phase ensures that all the committed transactions have executed in a serializable ashion. Every validation scheme is based on the ollowin principles to ensure serializability. I a transaction T i is serialized beore transaction T j, the ollowin two conditions must be satisied: 1. No overwritin. The writes o T i should not overwrite the writes o T j. 2. No read dependency. The writes o T i should not aect the read phase o T j. Generally, condition 1 is automatically ensured in most optimistic alorithms because I/O operations in the write phase are required to be done sequentially in critical section. Thus most validation schemes consider only condition 2. Durin the write phase, all chanes made by the transaction are permanently installed into the database. To desin eicient real-time OCC protocol, three issues have to be considered: 1. which validation scheme should be used to detect data conlicts amonst transactions; 2. how to minimize the number o transaction restarts; and 3. how to select a transaction to restart when there are conlicts. 2.1 Backward Validation In Backward Validation [Här84], the validatin transaction is checked or conlicts aainst (recently) committed transactions. Data conlicts are detected by comparin the read set o

5 3 the validatin transaction and the write set o the committed transactions. I the validatin transaction has a data conlict with any committed transactions, it will be restarted. The classical optimistic alorithm in [KR81] is based on this validation process. Let T v be the validatin transaction and T c (c = 1; 2; :::; n; c 6= v) be the transactions recently committed with respect to T v. Let RS(T ) and W S(T ) denote the read set and the write set o the transaction T, respectively. Backward Validation protocol is presented in iure 1. validate(t v ) valid = true; or T c (c = 1; 2; :::; n) i W S(T c ) \ RS(T v ) 6= ; then valid = alse; i not valid then break; i valid then commit W S(T v ) else restart(t v ); to database; Fiure 1: Backward Validation alorithm. 2.2 Forward Validation In Forward Validation [Här84], the validatin transaction is checked or conlicts aainst other active transactions. Data conlicts are detected by comparin the write set o validatin transaction and the read set o the active transactions. I active transaction has read an object that has been concurrently written by the validatin transaction, the values o the object used by the transactions are not consistent. Such data conlict can be resolved by restartin either the validatin transaction or the conlictin transactions in the read phase. Optimistic alorithms based on this validation process are studied in [Här84]. Let T a (a = 1; 2; :::; n; a 6= v) be the conlictin transactions in their read phase. Forward Validation protocol is presented in iure 2.

6 4 validate(t v ) valid = true; or T a (a = 1; 2; :::n) i RS(T a ) \ W S(T v ) 6= ; then valid = alse; i not valid then break; i valid then commit W S(T v ) to database; else conlict resolution(t v ); Fiure 2: Forward Validation alorithm. In the real-time database systems, data conlicts should be resolved in avor o the hiher priority transactions. Forward Validation provides lexibility or conlict resolution. Either the validatin transaction or the conlictin active transactions may be chosen to restart. Thereore it is preerable or the real-time database systems. In addition to this lexibility, Forward Validation has the advantae o early detection and resolution o data conlicts. 2.3 Unnecessary restarts The major perormance problem with OCC protocols is the heavy restart overheads, wastin lare amount o resources. Forward Validation is based on the assumption that the serialization order o transactions is determined by the arrivin order o transactions at vali dation phase. Thus the validatin transaction, i not restarted, always precedes concurrently runnin active transactions in serialization order. Validation process based on previous assumption can incur restarts not necessary to ensure data consistency. These restarts should be avoided. Let r i [x] and w i [x] denote a read and write operation, respectively, on the data object x by transaction T i, and let v i and c i denote the validation and commit o transaction T i, respectively. Consider transactions T 1 and T 2 : T 1 : r 1 [x]w 1 [x]v 1 c 1

7 5 T 2 : r 2 [x]w 2 [y]v 2 c 2 and suppose they execute as ollows: H 1 = r 2 [x]w 2 [y]r 1 [x]w 1 [x]v 1 Based on the traditional OCC, T 2 has to be restarted. However, it is not necessary. Because i T 2 is allowed to commit such as: H 1 = r 2 [x]w 2 [y]r 1 [x]w 1 [x]v 1 c 1 v 2 c 2, the history, H 1, is equivalent to the serialization order o T 2! T 1. There is no cycle in the history H 1. Thereore execution is serializable 2. 3 Optimistic Concurrency Control protocols In recent years, the use o optimistic schemes or concurrency control in real-time optimistic protocols has received more and more attention. Dierent real-time optimistic protocols have been proposed. They incorporate dierent priority conlict resolution methods in the validation phase o a transaction. In this paper we briewly present ew popular optimistic protocols and three optimistic protocols in detail. OPT-BC [HCL90b] extends classical optimistic protocol with Broadcast Commit [MN82, Rob87] protocol. In Broadcast Commit protocol the transaction notiies other runnin transactions that conlict with it. The conlictin transactions are restarted. OPT-SACRIFICE [HCL90a] is an optimistic protocol which uses a priority-driven abort or conlict resolution. When a transaction reaches its validation phase, alorithm checks or conlicts with currently executin transactions. I conlicts are detected and at least one o the transactions in the conlict set is a hiher priority transaction, then the validatin transaction is restarted. It is sacriiced in an eort to help the hiher priority transactions make their deadlines. OPT-WAIT [HCL90a] alorithm incorporates a priority wait mechanism. When transaction reaches its validation phase, i its priority is not the hihest amon the conlictin transactions, it waits or the conlictin transactions with hiher priority to complete. This ives the hiher

8 6 priority transactions a chane to make their deadlines irst. I transaction inally commits ater waitin or some time, it causes all its conlictin transactions with lower priority to be restarted. This problem becomes worse with the possibility o chained blockin, which may cause cascaded aborts. 3.1 WAIT-50 The WAIT-50 [HCL90a] alorithm is an extension o the OPT-WAIT. It incorporates a wait control mechanism. This mechanism monitors transaction conlict states and dynamically decides when, and or how lon, a low priority transaction should be made to wait or its conlictin hiher priority transactions. In WAIT-50 scheme, a validatin transaction is made to wait as lon as more than hal the transactions that conlict with it have hiher priorities. Otherwise it commits and all the conlictin transactions are restarted. The basic idea o WAIT-50 scheme is to maximize the beneicial eects o blockin, while reducin the eects o its drawbacks. A transaction s conlict state is assumed to be characterized by the index HPpercent. HPpercent is the percentae o the conlictin hiher priority transactions. The validation alorithm is presented in iure 3. validate(t v ) while conlictin hiher priority transactions and HPpercent 50 wait; or 8 T a 2 conlict set(t v ) restart(t a ); commit W S(T v ) to database; Fiure 3: Validation alorithm or WAIT-50. Perormance studies in [HCL90a] has shown WAIT-50 to provide siniicant perormance ains over OPT-BC, OPT-SACRIFICE and OPT-WAIT.

9 7 3.2 OCC-TI OCC-TI [LS93, Lee94] protocol resolves conlicts usin time intervals o the transactions. Every transaction must be executed in a speciic time slot. When an access conlict occurs, it is resolved usin the read and write sets o the transaction toether with the allocated time slot. Time slots are adjusted when a transaction commits. In this protocol, every transaction in the read phase is assined an timestamp interval. This timestamp interval is used to record temporary serialization order induced durin the execution o the transaction. At the start o execution, the timestamp interval o the transaction is initialized as [0; 1[, i.e., the entire rane o timestamp space. Whenever serialization order o the transaction is induced by its data operation or the validation o other transactions, its timestamp interval is adjusted to represent the dependencies. In the read phase when a read operation is executed, write timestamp o the object accessed is veriied aainst the time interval allocated to the transaction. I another transaction has written the object outside the time interval, the transaction must be restarted. In the read alorithm (iure 4) D i is the object to be read, T i is the transaction readin the object, T I(T i ) is the time interval allocated to the transaction, W T S(D i ) is the write timestamp o the object, and RT S(D i ) is the read timestamp o the object. read(t i ; D i ) T I(T i ) = T I(T i ) \ [W T S(D i ); 1[ ; i T I(T i ) = [] then restart(t i ); read(d i ); Fiure 4: Read alorithm or OCC-TI. In the read phase when a write operation is executed, the modiication is made to local copy o the object. A pre-write operation is used to veriy read and write timestamps o the written object aainst the time interval allocated to the transaction (iure 5). I another transaction has read or written the object outside the time interval, the transaction must be restarted.

10 8 pre-write(t i ; D i ) T I(T i ) = T I(T i ) \ [W T S(D i ); 1[ \ [RT S(D i ); 1[ ; i T I(T i ) = [] then restart(t i ); Fiure 5: Pre-write alorithm or OCC-TI. At the beinnin o the validation (iure 6) the inal timestamp o the validated transaction is determined rom the timestamp interval allocated to the transaction. In this alorithm, we always select the minimum value o T I(T v ) or T S(T v ). The timestamp intervals o all concurrently runnin and conlictin transactions must be adjusted to relect the serialization order. Any transaction which timestamp interval becomes empty must be restarted. validate(t v ) select T S(T v ) rom T I(T v ) ; or 8 T a 2 active transactions() adjust(t v ; T a ); or 8 D i 2 RS(T v ) update(rt S(D i )); or 8 D i 2 W S(T v ) update(w T S(D i )); commit W S(T v ) to database; Fiure 6: Validation alorithm or OCC-TI. The adjustment o timestamp intervals o a runnin transaction iterates throuh the readset and writeset (iure 7). When access has been made to the same objects both in validatin transaction and in the compared transaction, the time interval o the compared transaction is adjusted. I a compared transaction has made a conlictin operation in an adjusted time interval, the transaction must be restarted.

11 9 adjust(t v ; T a ) or 8 D i 2 RS(T v ) i D i 2 W S(T a ) then T I(T a ) = T I(T a ) \ [T S(T v ); 1[ ; i T I(T a ) = [] then restart(t a ); or 8 D i 2 W S(T v ) i D i 2 RS(T a ) then T I(T a ) = T I(T a ) \ [0; T S(T v )? 1]; i D i 2 W S(T a ) then T I(T a ) = T I(T a ) \ [T S(T v ); 1[ ; i T I(T a ) = [] then restart(t a ); Fiure 7: Adjust alorithm or OCC-TI. Perormance studies in [LS93] has shown that under the policy that discards tardy transactions rom the system, the optimistic alorithms outperorm 2PL-HP [AGM88]. OCC-TI does better than OPT-BC amon the optimistic alorithms. The perormance dierence between OPT-BC and OCC-TI becomes lare especially when the probability o a data object read bein updated is low, which is true in most actual database systems. 3.3 OCC-DA OCC-DA [LLH96] is based on the Forward Validation scheme. The number o transaction restarts is reduced by usin dynamic adjustment o serialization order. This is supported with the use o a dynamic timestamp assinment scheme. Conlict checkin is perormed at the validation phase o a transaction. No adjustment o the timestamps is necessary in case o data conlicts in the read phase. In OCC-DA serialization order o committed transactions may be dierent rom their commit order. Suppose we have a validatin transaction T v and a set o active transactions T j (j = 1; 2; :::; n; j 6=

12 10 v). There are three possible types o data conlicts which can induce serialization order between T v and T j. 1. RS(T v ) \ W S(T j ) 6= ; (write-read conlict) Write-read conlict between T j and T v can be resolved by adjustin the serialization order between T v and T j as T v! T j so that the read o T v cannot be aected by T j s write. This type o serialization adjustment is called orward adjustment. 2. W S(T v ) \ RS(T j ) 6= ; (read-write conlict) Read-write conlict between T j and T v can be resolved by adjustin the serialization order between T v and T j as T j! T v. It means that the read phase o T j is placed beore the write o T v. This type o serialization adjustment is called backward adjustment. 3. W S(T v ) \ W S(T j ) 6= ; (write-write conlict) Write-write conlict between T j and T v can be resolved by adjustin the serialization order between T v and T j as T v! T j such that write o T v cannot overwrite T j s write. This type o serialization adjustment is called orward adjustment. To support dynamic adjustment o serialization order in OCC-DA, a dynamic timestamp assinment method is used. For each transaction, T i, there is a timestamp called serialization order timestamp SOT (T i ) to indicate its serialization order relative to other transactions. Initially, the value o SOT (T i ) is set to be 1. I the value o SOT (T i ) is other than 1, it means that T i has been backward adjusted beore a committed transaction. I T i has been backward adjusted, SOT (T i ) will also be used to detect whether T i has accessed any invalid data item. This is done by comparin its timestamp with the timestamps o the committed transactions which have read or written the same data item. A data item in its read set and write set is invalidated i the data item has been updated by other committed transactions which have been deined ater the transaction in the serialization order. When T v comes to validation, the sets o active transactions, T i, whose serialization order timestamp, SOT (T v ) SOT (T i ) are collected to set AT S(T v ). The set o active transactions, T j, whose serialization order timestamp, SOT (T j ) < SOT (T v ) are collected to set BT S(T v ). In read phase T R(T v ; D p ) is set to be W T S(D p ) o read data item D p.

13 11 The irst part o the validation test is used only or those validatin transactions which have been backward adjusted (iure 8). It is to check whether: 1. all the read operations o T v have been read rom the committed transactions T c whose SOT (T c ) < SOT (T v ), and 2. whether T v s write is invalidated. This is done by comparin SOT (T v ) with W T S(D p ) and RT S(D p ) o the data item D p in T v s write set or read set. part one(t v ) i SOT (T v ) 6= 1 then or 8 D p 2 RS(T v ) i T R(T v ; D p ) > SOT (T v ) then restart( T v ); or 8 D p 2 W S(T v ) i SOT (T v ) < RT S(D p ) or SOT (T v ) < W T S(D p ) then restart( T v ); Fiure 8: First part o the validation alorithm or OCC-DA. The purpose o part two o the test is to detect read-write conlicts between the active transactions and the validatin transactions (iure 9). The write set o T v is compared with the read sets o the active transactions T j. The identity o the conlictin active transactions T j are added to BT list(t v ) to indicate that T j needs to be backward adjusted beore T v.

14 12 part two(t v ) BT list(t v ) = ; ; or 8 T j 2 AT S(T v ) or 8 D p 2 W S(T v ) i D p 2 RS(T j ) then BT list(t v ) = BT list(t v ) [ T j ; Fiure 9: Second part o the validation alorithm or OCC-DA. The third part o the test is to detect whether a backward-adjusted transaction T j also needs orward adjustment with respect to T v (iure 10). It compares the write set o T j which is in BT S(T v ) or in BT list(t v ) with the read set o T v, and the write set o T v with the write sets o T j. I either one o them is not empty, T j has serious conlict with T v. In conlict resolution we select transactions or restart based on priorities. part tree(t v ) or 8 T j 2 BT S(T v ) [ BT list(t v ) or 8 D p 2 RS(T v ) i D p 2 W S(T j ) then conlict resolution(t v ; T j ); or 8 D p 2 W S(T v ) i D p 2 W S(T j ) then conlict resolution(t v ; T j ); Fiure 10: Third part o the validation alorithm or OCC-DA. When the validatin transaction reaches part our o the test, it is uaranteed to commit. The purpose is to assin a inal commitment timestamp to the validatin transaction and to update the necessary timestamps o the data items (iure 11).

15 13 part our(t v ) i SOT (T v ) = 1 then SOT (T v ) = validation time ; or 8 T j 2 BT list(t v ) SOT (T j ) = SOT (T v )? ; //ininitesimal quantity or 8 D p 2 RS(T v ) RT S(D p ) = SOT (T v ) ; or 8 D p 2 W S(T v ) W T S(D p ) = SOT (T v ) ; commit W S(T v ) to database; 4 Conclusions Fiure 11: Fourth part o the validation alorithm or OCC-DA. Concurrency control is one o the main issues in the studies o real-time database systems. With a strict consistency requirements deined by serializability, many real-time concurrency control schemes considered in literature are based on two-phase lockin (2PL). This is not surprisin since 2PL has been well studied in traditional database systems and is bein widely used in commercial databases. But 2PL has some inherent problems such as the possibility o deadlocks and lon and unpredictable blockin times. These appear to be serious problems or real-time transaction processin. Since in a real-time environment, transactions need to meet their time constraints as well as consistency requirements. Thereore some alternatives to two-phase lockin or real-time systems have been proposed and studied. Amon them is a class o concurrency control schemes based on the well-know optimistic approach. Optimistic concurrency controll has the properties o non-blockin and deadlock reedom. These properties make the optimistic scheme especially attractive to realtime database system. Optimistic protocols can be based on Backward Validation or Forward Validation. Most o propoced alorithms are based on Forward Validation. OPT-BC extend optimistic concurrency control protocol with Broadcast Commit. OPT-SACRIFICE uses priority driven abort conlict resolution. OPT-WAIT incorporates priority wait mechanism. WAIT-50 is extension

16 14 o OPT-WAIT incorcorporatin wait control mechanism. OCC-TI resolves conlicts usin time intervals o transaction. OCC-DA reduces transaction restarts and resolves conlicts usin dynamic timestamp assinment. From presented protocols OCC-DA is shown to be most powerul alorithm. Reerences [AGM88] R. Abbott and H. Garcia-Molina. Schedulin real-time transactions: A perormance evaluation. In F. Bancilhon and D. J. DeWitt, editors, Proceedins o the 14th VLDB Conerence, paes 1 12, San Mateo, Cali., Moran Kaumann. [EGLT76] K. P. Eswaran, J. N. Gray, R. A. Lorie, and I. L. Traier. The notions o consistency and predicate locks in a database system. Commun. ACM, 19(11): , November [Här84] T. Härder. Observations on optimistic concurrency control schemes. Inormation Systems, 9(2): , [HCL90a] J. R. Haritsa, M. J. Carey, and M. Livny. Dynamic real-time optimistic concurrency control. In Proceedins o the 11th Real-Time Symposium, paes , Los Alamitos, Cali., IEEE, IEEE Computer Society Press. [HCL90b] J. R. Haritsa, M. J. Carey, and M. Livny. On bein optimistic about real-time constraints. In Proceedins o the 9th ACM Symposium on Principles o Database Systems, paes ACM, ACM Press, [KR81] [Lee94] H. T. Kun and J. T. Robinson. On optimistic methods or concurrency control. ACM Transaction on Database Systems, 6(2): , June J. Lee. Concurrency Control Alorithms or Real-Time Database Systems. PhD thesis, Faculty o the School o Enineerin and Applied Science, University o Virinia, January [LLH96] K. Lam, K. Lam, and S. Hun. An eicient real-time optimistic concurrency control protocol. In Proceedins o the First International Workshop on Active

17 15 and Real-Time Database Systems, paes , Skövde, Sweden, June Spriner. [LS93] [MN82] [Rob87] J. Lee and S. H. Son. Usin dynamic adjustment o serialization order or real-time database systems. In Proceedins Real-Time Systems Symposium, paes 66 75, Los Alamitps, Cali., IEEE, IEEE Computer Society Press. D. Menasce and T. Nakanishi. Optimistic versus pessimistic concurrency control mechanisms in database manaement systems. Inormation Systems, 7(1):13 27, J. Robinson. Desin o Concurrency Controls or Transaction Processin Systems. PhD thesis, Carneie Mellon University, December 1987.

Using Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases

Using Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases Usin Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases Jan Lindström and Kimmo Raatikainen University o Helsinki, Department o Computer Science P.O. Box 26 (Teollisuuskatu

More information

Performance of Distributed Optimistic Concurrency Control in Real-Time databases

Performance of Distributed Optimistic Concurrency Control in Real-Time databases Performance of Distributed Optimistic Concurrency Control in Real-Time databases Jan Lindström University of Helsinki, Department of Computer Science P.O. Box 26 (Teollisuuskatu 23), FIN-00014 University

More information

Dynamic Adjustment of Serialization Order using Timestamp Intervals in Real-Time Databases

Dynamic Adjustment of Serialization Order using Timestamp Intervals in Real-Time Databases Dynamic Adjustment of Serialization Order using Timestamp Intervals in Real-Time Databases Jan Lindström and Kimmo Raatikainen Department of Computer Science, University of Helsinki P.O. Box 26 (Teollisuuskatu

More information

Real-time Optimistic Concurrency Control based on Transaction Finish Degree

Real-time Optimistic Concurrency Control based on Transaction Finish Degree Journal of Computer Science 1 (4): 471-476, 2005 ISSN 1549-3636 Science Publications, 2005 Real-time Optimistic Concurrency Control based on Transaction Finish Degree 1 Han Qilong, 1,2 Hao Zhongxiao 1

More information

Using Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases

Using Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases Using Real-Time Serializability and Optimistic Concurrency Control in Firm Real-Time Databases Jan Lindström and Kimmo Raatikainen University of Helsinki, Department of Computer Science P.O. Box 26 (Teollisuuskatu

More information

Chapter 1 PERDURABLE: A Real Time Commit Protocol

Chapter 1 PERDURABLE: A Real Time Commit Protocol Chapter 1 PERDURABLE: A Real Time Commit Protocol Udai Shanker, B. Vidyareddi, and Anupam Shukla 1.1 Introduction Real Time Systems (RTS) are those systems, or which, correctness depends not only on the

More information

Integrated QOS management for disk I/O. Dept. of Comp. Sci. Dept. of Elec. Engg. 214 Zachry. College Station, TX

Integrated QOS management for disk I/O. Dept. of Comp. Sci. Dept. of Elec. Engg. 214 Zachry. College Station, TX Interated QOS manaement or disk I/O Ravi Wijayaratne A. L. Narasimha Reddy Dept. o Comp. Sci. Dept. o Elec. En. Texas A & M University 214 Zachry Collee Station, TX 77843-3128 ravi,reddy@ee.tamu.edu Abstract

More information

Thread-based vs Event-based Implementation of a Group Communication Service

Thread-based vs Event-based Implementation of a Group Communication Service Thread-based vs Event-based Implementation o a Group Communication Service Shivakant Mishra and Ronuan Yan Department o Computer Science University o Wyomin, P.O. Box 3682 Laramie, WY 8271-3682, USA. Email:

More information

A SUIF Interface Module for Eli. W. M. Waite. University of Colorado

A SUIF Interface Module for Eli. W. M. Waite. University of Colorado A SUIF Interace Module or Eli W. M. Waite Department o Electrical and Computer Enineerin University o Colorado William.Waite@Colorado.edu 1 What is Eli? Eli [2] is a domain-specic prorammin environment

More information

Locking Based Concurrency Control. for Integrated Real-Time Database Systems. D. Hong y. S. Chakravarthy. T. Johnson

Locking Based Concurrency Control. for Integrated Real-Time Database Systems. D. Hong y. S. Chakravarthy. T. Johnson Locking Based Concurrency Control for Integrated Real-Time Database Systems D. Hong y S. Chakravarthy T. Johnson Database Systems Research and Development Center Computer and Information Science and Engineering

More information

A Cell Burst Scheduling for ATM Networking Part II: Implementation

A Cell Burst Scheduling for ATM Networking Part II: Implementation A Cell Burst Schedulin or ATM Networkin Part II: Implementation C. Tan, A. T. Chronopoulos, Senior Member, IEEE Computer Science Department Wayne State University email:ctan, chronos@cs.wayne.edu E. Yaprak,

More information

An Optimistic Concurrency Control Approach Applied to Temporal Data in Real-time Database Systems

An Optimistic Concurrency Control Approach Applied to Temporal Data in Real-time Database Systems An Optimistic Concurrency Control Approach Applied to Temporal Data in Real-time Database Systems Walid MOUDANI, Nicolas KHOURY, Mohamad HUSSEIN Business Computer Department Lebanese University LEBANON

More information

Performance and Overhead Measurements. on the Makbilan. Department of Computer Science. The Hebrew University of Jerusalem

Performance and Overhead Measurements. on the Makbilan. Department of Computer Science. The Hebrew University of Jerusalem Perormance and Overhead Measurements on the Makbilan Yosi Ben-Asher Dror G. Feitelson Dtment o Computer Science The Hebrew University o Jerusalem 91904 Jerusalem, Israel E-mail: yosi,dror@cs.huji.ac.il

More information

Using Dynamic Adjustment of Serialization Order for Real-Time Database Systems

Using Dynamic Adjustment of Serialization Order for Real-Time Database Systems ~~ Using Dynamic Adjustment of Serialization Order for Real-Time Database Systems Juhnyoung Lee and Sang H. Son Department of Computer Science University of Virginia Charlottesville, VA 22903 Abstract

More information

Optimistic Concurrency Control Methods for Real-Time Database Systems

Optimistic Concurrency Control Methods for Real-Time Database Systems DEPARTMENT OF COMPUTER SCIENCE SERIES OF PUBLICATIONS C REPORT C-2001-9 Optimistic Concurrency Control Methods for Real-Time Database Systems Jan Lindström UNIVERSITY OF HELSINKI FINLAND Optimistic Concurrency

More information

Optimistic Concurrency Control. April 13, 2017

Optimistic Concurrency Control. April 13, 2017 Optimistic Concurrency Control April 13, 2017 1 Serializability Executing transactions serially wastes resources Interleaving transactions creates correctness errors Give transactions the illusion of isolation

More information

HCE: A New Channel Exchange Scheme for Handovers in Mobile Cellular Systems

HCE: A New Channel Exchange Scheme for Handovers in Mobile Cellular Systems 129 HCE: A New Channel Exchane Scheme for Handovers in Mobile Cellular Systems DNESH K. ANVEKAR* and S. SANDEEP PRADHAN Department of Electrical Communication Enineerin ndian nstitute of Science, Banalore

More information

Status. We ll do code generation first... Outline

Status. We ll do code generation first... Outline Status Run-time Environments Lecture 11 We have covered the ront-end phases Lexical analysis Parsin Semantic analysis Next are the back-end phases Optimization Code eneration We ll do code eneration irst...

More information

A Rigorous Correctness Proof of a Tomasulo Scheduler Supporting Precise Interrupts

A Rigorous Correctness Proof of a Tomasulo Scheduler Supporting Precise Interrupts A Riorous Correctness Proo o a Tomasulo Scheduler Supportin Precise Interrupts Daniel Kroenin Λ, Silvia M. Mueller y, and Wolan J. Paul Dept. 14: Computer Science, University o Saarland, Post Box 151150,

More information

Hybrid Concurrency Control Method in Firm Real-Time Databases

Hybrid Concurrency Control Method in Firm Real-Time Databases Hybrid Concurrency Control Method in Firm Real-Time Databases Jan Lindström IBM Finland Lab Laajalahdentie 23, 00101 Helsinki, Finland jan.lindstrom@fi.ibm.com Abstract Real-time database system must meet

More information

A Nearest Neighbor Method for Efficient ICP

A Nearest Neighbor Method for Efficient ICP A Nearest Neihbor Method or Eicient ICP Michael Greenspan Guy Godin Visual Inormation Technoloy Group Institute or Inormation Technoloy, National Research Council Canada Bld. M50, 1500 Montreal Rd., Ottawa,

More information

Towards the Evaluation of Algorithms used in Real-Time Databases

Towards the Evaluation of Algorithms used in Real-Time Databases Towards the Evaluation of Algorithms used in Real-Time Databases VÁCLAV KRÓL 1, JINDŘICH ČERNOHORSKÝ 2, JAN POKORNÝ 2 1 Institute of Information Technologies Silesian University in Opava, Faculty of Business

More information

Optimistic Concurrency Control. April 18, 2018

Optimistic Concurrency Control. April 18, 2018 Optimistic Concurrency Control April 18, 2018 1 Serializability Executing transactions serially wastes resources Interleaving transactions creates correctness errors Give transactions the illusion of isolation

More information

Coarse Grained Parallel Maximum Matching In Convex Bipartite Graphs

Coarse Grained Parallel Maximum Matching In Convex Bipartite Graphs Coarse Grained Parallel Maximum Matchin In Convex Bipartite Graphs P. Bose, A. Chan, F. Dehne, and M. Latzel School o Computer Science Carleton University Ottawa, Canada K1S 5B6 jit,achan,dehne,mlatzel@scs.carleton.ca

More information

A Prudent-Precedence Concurrency Control Protocol for High Data Contention Main Memory Databases

A Prudent-Precedence Concurrency Control Protocol for High Data Contention Main Memory Databases Int'l Conf. Information and Knowledge Engineering IKE'16 3 A Prudent-Precedence Concurrency Control Protocol for High Data Contention Main Memory Databases Mohammed Hamdi 1, Weidong Xiong 1, Feng Yu 2,

More information

Concurrency control CS 417. Distributed Systems CS 417

Concurrency control CS 417. Distributed Systems CS 417 Concurrency control CS 417 Distributed Systems CS 417 1 Schedules Transactions must have scheduled so that data is serially equivalent Use mutual exclusion to ensure that only one transaction executes

More information

Comparing two-phase locking and optimistic concurrency control protocols in multiprocessor real-time databases

Comparing two-phase locking and optimistic concurrency control protocols in multiprocessor real-time databases Title Comparing two-phase locking and optimistic concurrency control protocols in multiprocessor real-time databases Author(s) Chiu, A; Kao, CM; Lam, KY Citation The 5th Joint Workshop on Parallel and

More information

Theodore Johnson. Dept. of Computer and Information Science, University of Florida. Abstract

Theodore Johnson. Dept. of Computer and Information Science, University of Florida. Abstract A Concurrent Fast-Fits Memory Manaer University o Florida, Dept. o CIS Electronic TR91-009 Theodore Johnson Dept. o Computer and Inormation Science, University o Florida ted@cis.u.edu September 12, 1991

More information

FPGA Technology Mapping: A Study of Optimality

FPGA Technology Mapping: A Study of Optimality FPGA Technoloy Mappin: A Study o Optimality Andrew Lin Department o Electrical and Computer Enineerin University o Toronto Toronto, Canada alin@eec.toronto.edu Deshanand P. Sinh Altera Corporation Toronto

More information

A Proposed Approach for Solving Rough Bi-Level. Programming Problems by Genetic Algorithm

A Proposed Approach for Solving Rough Bi-Level. Programming Problems by Genetic Algorithm Int J Contemp Math Sciences, Vol 6, 0, no 0, 45 465 A Proposed Approach or Solving Rough Bi-Level Programming Problems by Genetic Algorithm M S Osman Department o Basic Science, Higher Technological Institute

More information

2 IEICE TRANS. COMMUN., VOL. 0, NO Table 1 Classication of Replacement Policies. Replacement Re-reference likelihood Non-uniformity Policies T

2 IEICE TRANS. COMMUN., VOL. 0, NO Table 1 Classication of Replacement Policies. Replacement Re-reference likelihood Non-uniformity Policies T IEICE TRANS. COMMUN., VOL. 0, NO. 0 2000 1 PAPER IEICE Transactions on Communications Exploitin Metadata of Absent Objects for Proxy Cache Consistency Jooyon Kim y,hyokyun Bahn yy, Nonmembers, and Kern

More information

REAL-TIME MULTIVERSION REPEATABLE READ ISOLATION LEVEL

REAL-TIME MULTIVERSION REPEATABLE READ ISOLATION LEVEL REAL-TIME MULTIVERSION REPEATABLE READ ISOLATION LEVEL Jan Lindström soliddb, IBM Helsinki Lab, IBM Software Group, P.O. Box 265, Fi-00101 Helsinki, Finland jan.lindstrom@fi.ibm.com ABSTRACT Concurrency

More information

Concurrency Control. R &G - Chapter 19

Concurrency Control. R &G - Chapter 19 Concurrency Control R &G - Chapter 19 Smile, it is the key that fits the lock of everybody's heart. Anthony J. D'Angelo, The College Blue Book Review DBMSs support concurrency, crash recovery with: ACID

More information

A Transaction Processing Technique in Real-Time Object- Oriented Databases

A Transaction Processing Technique in Real-Time Object- Oriented Databases 122 IJCSNS International Journal of Computer Science and Network Security, VOL.8 No.1, January 2008 A Transaction Processing Technique in Real-Time Object- Oriented Databases Woochun Jun Dept. of Computer

More information

Method estimating reflection coefficients of adaptive lattice filter and its application to system identification

Method estimating reflection coefficients of adaptive lattice filter and its application to system identification Acoust. Sci. & Tech. 28, 2 (27) PAPER #27 The Acoustical Society o Japan Method estimating relection coeicients o adaptive lattice ilter and its application to system identiication Kensaku Fujii 1;, Masaaki

More information

RE2C { A More Versatile Scanner Generator. Peter Bumbulis Donald D. Cowan. University of Waterloo. April 15, Abstract

RE2C { A More Versatile Scanner Generator. Peter Bumbulis Donald D. Cowan. University of Waterloo. April 15, Abstract RE2C { A More Versatile Scanner Generator Peter Bumbulis Donald D. Cowan Computer Science Department and Computer Systems Group University o Waterloo April 15, 1994 Abstract It is usually claimed that

More information

Image Fusion for Enhanced Vision System using Laplacian Pyramid

Image Fusion for Enhanced Vision System using Laplacian Pyramid Imae Fusion or Enhanced Vision System usin aplacian Pyramid Abhilash G, T.V. Rama Murthy Department o ECE REVA Institute o Technoloy and Manaement Banalore-64, India V. P. S Naidu MSDF ab, FMCD, CSIR-National

More information

From Java to C A Supplement to Computer Algorithms, Third Edition. Sara Baase Allen Van Gelder

From Java to C A Supplement to Computer Algorithms, Third Edition. Sara Baase Allen Van Gelder From Java to C A Supplement to Computer Alorithms, Third Edition Sara Baase Allen Van Gelder October 30, 2004 ii clcopyriht 2000, 2001 Sara Baase and Allen Van Gelder. All rihts reserved. This document

More information

9.8 Graphing Rational Functions

9.8 Graphing Rational Functions 9. Graphing Rational Functions Lets begin with a deinition. Deinition: Rational Function A rational unction is a unction o the orm P where P and Q are polynomials. Q An eample o a simple rational unction

More information

#prama omp or or( int i=0; i<n; i++ ) process( data[i] ); nodeptr list, p;... Fiure 1: The OpenMP or Prama or( p=list; p!=null; p=p->next ) process(p-

#prama omp or or( int i=0; i<n; i++ ) process( data[i] ); nodeptr list, p;... Fiure 1: The OpenMP or Prama or( p=list; p!=null; p=p->next ) process(p- Flexible Control Structures or Parallelism in OpenMP Sanjiv Shah, Grant Haab, Paul Petersen, & Joe Throop Kuck & Associates, Incorporated 1906 Fox Drive Champain, IL 61820 http://www.kai.com sanjiv,rant,petersen,jthroop@kai.com

More information

Lock-based concurrency control. Q: What if access patterns rarely, if ever, conflict? Serializability. Concurrency Control II (OCC, MVCC)

Lock-based concurrency control. Q: What if access patterns rarely, if ever, conflict? Serializability. Concurrency Control II (OCC, MVCC) Concurrency Control II (CC, MVCC) CS 418: Distributed Systems Lecture 18 Serializability Execution of a set of transactions over multiple items is equivalent to some serial execution of s Michael Freedman

More information

Linear Network Coding

Linear Network Coding IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 49, NO. 2, FEBRUARY 2003 371 Linear Network Codin Shuo-Yen Robert Li, Senior Member, IEEE, Raymond W. Yeun, Fellow, IEEE, Nin Cai Abstract Consider a communication

More information

Concurrency Control 9-1

Concurrency Control 9-1 Concurrency Control The problem of synchronizing concurrent transactions such that the consistency of the database is maintained while, at the same time, maximum degree of concurrency is achieved. Principles:

More information

Multi-version Speculative Concurrency Control. with Delayed Commit. Azer Bestavros. Boston University

Multi-version Speculative Concurrency Control. with Delayed Commit. Azer Bestavros.  Boston University Multi-version peculative Concurrency Control with Delayed Commit zer Bestavros (best@cs.bu.edu) Biao Wang (bwang@cs.bu.edu) Computer cience Department Boston University Boston, M 225 October 27, 993 bstract

More information

Data Dissemination in Mobile Computing Environments (2)

Data Dissemination in Mobile Computing Environments (2) Data Dissemination in Mobile Computing Environments (2) Sungwon Jung Dept. of Computer Science and Engineering Sogang University Seoul, Korea Email : jungsung@sogang.ac.kr Indexing Techniques for Broadcast

More information

A Classification System and Analysis for Aspect-Oriented Programs

A Classification System and Analysis for Aspect-Oriented Programs A Classiication System and Analysis or Aspect-Oriented Programs Martin Rinard, Alexandru Sălcianu, and Suhabe Bugrara Massachusetts Institute o Technology Cambridge, MA 02139 ABSTRACT We present a new

More information

Outline. Optimistic CC (Kung&Robinson) Carnegie Mellon Univ. Dept. of Computer Science Database Applications

Outline. Optimistic CC (Kung&Robinson) Carnegie Mellon Univ. Dept. of Computer Science Database Applications Carnegie Mellon Univ. Dept. of Computer Science 15-415 - Database Applications Lecture #23: Alternative Concurrency Control Methods (R&G ch. 17) Faloutsos SCS 15-415 #1 Outline serializability; 2PL; deadlocks

More information

Applying fair queueing and traffic shaping for Internet applications on top of ATM The LB_SCFQ algorithm

Applying fair queueing and traffic shaping for Internet applications on top of ATM The LB_SCFQ algorithm Applying air queueing and traic shaping or Internet applications on top o ATM The LB_SCFQ algorithm Abstract Fair queueing mechanisms give very promising results or ATM networks. Combining a air queueing

More information

Resolving Executing Committing Conflicts in Distributed Real-time Database Systems

Resolving Executing Committing Conflicts in Distributed Real-time Database Systems Resolving Executing Committing Conflicts in Distributed Real-time Database Systems KAM-YIU LAM 1,CHUNG-LEUNG PANG 1,SANG H. SON 2 AND JIANNONG CAO 3 1 Department of Computer Science, City University of

More information

MATRIX ALGORITHM OF SOLVING GRAPH CUTTING PROBLEM

MATRIX ALGORITHM OF SOLVING GRAPH CUTTING PROBLEM UDC 681.3.06 MATRIX ALGORITHM OF SOLVING GRAPH CUTTING PROBLEM V.K. Pogrebnoy TPU Institute «Cybernetic centre» E-mail: vk@ad.cctpu.edu.ru Matrix algorithm o solving graph cutting problem has been suggested.

More information

Maintaining Temporal Consistency: Issues and Algorithms

Maintaining Temporal Consistency: Issues and Algorithms Maintaining Temporal Consistency: Issues and Algorithms Ming Xiong, John A. Stankovic, Krithi Ramamritham, Don Towsley, Rajendran Sivasankaran Department of Computer Science University of Massachusetts

More information

Speculative Concurrency Control. A position Statement. Azer Bestavros. Boston University

Speculative Concurrency Control. A position Statement. Azer Bestavros. Boston University peculative Concurrency Control position tatement zer Bestavros Computer cience Department Boston University Introduction Traditional concurrency control algorithms can be broadly classied as either pessimistic

More information

a<b x = x = c!=d = y x = = x false true

a<b x = x = c!=d = y x = = x false true 1 Introduction 1.1 Predicated execution Predicated execution [HD86, RYYT89, DT93, KSR93] is an architectural model in which each operation is uarded by a boolean operand whose value determines whether

More information

CIRS: A State-Conscious Concurrency Control Protocol for Replicated Real-Time Databases

CIRS: A State-Conscious Concurrency Control Protocol for Replicated Real-Time Databases CIRS: A State-Conscious Concurrency Control Protocol for Replicated Real-Time Databases Vishal Pathak Ajay Pratap Rabin Kr. Singh Abhishek Kr. Singh Abstract Replication [5] is the technique of using multiple

More information

Improving Computer Security using Extended Static Checking

Improving Computer Security using Extended Static Checking Improvin Computer Security usin Extended Static Checkin Brian V. Chess Department o Computer Enineerin University o Caliornia, Santa Cruz Abstract We describe a method or indin security laws in source

More information

Concurrency Control CHAPTER 17 SINA MERAJI

Concurrency Control CHAPTER 17 SINA MERAJI Concurrency Control CHAPTER 17 SINA MERAJI Announcement Sign up for final project presentations here: https://docs.google.com/spreadsheets/d/1gspkvcdn4an3j3jgtvduaqm _x4yzsh_jxhegk38-n3k/edit#gid=0 Deadline

More information

ISSN: Monica Gahlyan et al, International Journal of Computer Science & Communication Networks,Vol 3(3),

ISSN: Monica Gahlyan et al, International Journal of Computer Science & Communication Networks,Vol 3(3), Waiting Algorithm for Concurrency Control in Distributed Databases Monica Gahlyan M-Tech Student Department of Computer Science & Engineering Doon Valley Institute of Engineering & Technology Karnal, India

More information

Transaction Processing: Concurrency Control ACID. Transaction in SQL. CPS 216 Advanced Database Systems. (Implicit beginning of transaction)

Transaction Processing: Concurrency Control ACID. Transaction in SQL. CPS 216 Advanced Database Systems. (Implicit beginning of transaction) Transaction Processing: Concurrency Control CPS 216 Advanced Database Systems ACID Atomicity Transactions are either done or not done They are never left partially executed Consistency Transactions should

More information

Concurrency Control. [R&G] Chapter 17 CS432 1

Concurrency Control. [R&G] Chapter 17 CS432 1 Concurrency Control [R&G] Chapter 17 CS432 1 Conflict Serializable Schedules Two schedules are conflict equivalent if: Involve the same actions of the same transactions Every pair of conflicting actions

More information

An Aggressive Concurrency Control Protocol for Main Memory Databases

An Aggressive Concurrency Control Protocol for Main Memory Databases An Aggressive Concurrency Control Protocol for Main Memory Databases Mohammed Hamdi Department of Computer Science Sarah Alswedani Department of Computer Science Weidong Xiong Department of Computer Science

More information

Concurrency Control. Conflict Serializable Schedules. Example. Chapter 17

Concurrency Control. Conflict Serializable Schedules. Example. Chapter 17 Concurrency Control Chapter 17 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Conflict Serializable Schedules Two schedules are conflict equivalent if: Involve the same actions of the

More information

Efficient Priority Assignment Policies for Distributed Real-Time Database Systems

Efficient Priority Assignment Policies for Distributed Real-Time Database Systems Proceedings of the 7 WSEAS International Conference on Computer Engineering and Applications, Gold Coast, Australia, January 17-19, 7 7 Efficient Priority Assignment Policies for Distributed Real-Time

More information

A Novel Accurate Genetic Algorithm for Multivariable Systems

A Novel Accurate Genetic Algorithm for Multivariable Systems World Applied Sciences Journal 5 (): 137-14, 008 ISSN 1818-495 IDOSI Publications, 008 A Novel Accurate Genetic Algorithm or Multivariable Systems Abdorreza Alavi Gharahbagh and Vahid Abolghasemi Department

More information

optimization agents user interface agents database agents program interface agents

optimization agents user interface agents database agents program interface agents A MULTIAGENT SIMULATION OPTIMIZATION SYSTEM Sven Hader Department of Computer Science Chemnitz University of Technoloy D-09107 Chemnitz, Germany E-Mail: sha@informatik.tu-chemnitz.de KEYWORDS simulation

More information

10. SOPC Builder Component Development Walkthrough

10. SOPC Builder Component Development Walkthrough 10. SOPC Builder Component Development Walkthrough QII54007-9.0.0 Introduction This chapter describes the parts o a custom SOPC Builder component and guides you through the process o creating an example

More information

Composite functions. [Type the document subtitle] Composite functions, working them out.

Composite functions. [Type the document subtitle] Composite functions, working them out. Composite unctions [Type the document subtitle] Composite unctions, workin them out. luxvis 11/19/01 Composite Functions What are they? In the real world, it is not uncommon or the output o one thin to

More information

Part III Transactions

Part III Transactions Part III Transactions Transactions Example Transaction: Transfer amount X from A to B debit(account A; Amount X): A = A X; credit(account B; Amount X): B = B + X; Either do the whole thing or nothing ACID

More information

Cached. Cached. Cached. Active. Active. Active. Active. Cached. Cached. Cached

Cached. Cached. Cached. Active. Active. Active. Active. Cached. Cached. Cached Manain Pipeline-Reconurable FPGAs Srihari Cadambi, Jerey Weener, Seth Copen Goldstein, Herman Schmit, and Donald E. Thomas Carneie Mellon University Pittsburh, PA 15213-3890 fcadambi,weener,seth,herman,thomas@ece.cmu.edu

More information

Project Report, CS 862 Quasi-Consistency and Caching with Broadcast Disks

Project Report, CS 862 Quasi-Consistency and Caching with Broadcast Disks Project Report, CS 862 Quasi-Consistency and Caching with Broadcast Disks Rashmi Srinivasa Dec 7, 1999 Abstract Among the concurrency control techniques proposed for transactional clients in broadcast

More information

Concurrency Control in Distributed Systems. ECE 677 University of Arizona

Concurrency Control in Distributed Systems. ECE 677 University of Arizona Concurrency Control in Distributed Systems ECE 677 University of Arizona Agenda What? Why? Main problems Techniques Two-phase locking Time stamping method Optimistic Concurrency Control 2 Why concurrency

More information

POLAR codes were proposed in [1] as a low-complexity

POLAR codes were proposed in [1] as a low-complexity A Hih-Throuhput Enery-Eicient Implementation o Successive Cancellation Decoder or Polar Codes Usin Combinational Loic Onur Dizdar, Student Member, IEEE, and Erdal Arıkan, Fellow, IEEE arxiv:42.3829v5 [cs.ar]

More information

LEGEND. Cattail Sawgrass-Cattail Mixture Sawgrass-Slough. Everglades. National. Park. Area of Enlargement. Lake Okeechobee

LEGEND. Cattail Sawgrass-Cattail Mixture Sawgrass-Slough. Everglades. National. Park. Area of Enlargement. Lake Okeechobee An Ecient Parallel Implementation of the Everlades Landscape Fire Model Usin Checkpointin Fusen He and Jie Wu Department of Computer Science and Enineerin Florida Atlantic University Boca Raton, FL 33431

More information

Reading Temporally Consistent Data in Broadcast Disks

Reading Temporally Consistent Data in Broadcast Disks Reading Temporally Consistent Data in Broadcast Disks Victor C.S. Lee Joseph K. Ng Jo Y. P. Chong Kwok-wa Lam csvlee@cityu.edu.hk jng@comp.hkbu.edu.hk csleric@cityu.edu.hk Department of Computer Science,City

More information

A Requirement Specification Language for Configuration Dynamics of Multiagent Systems

A Requirement Specification Language for Configuration Dynamics of Multiagent Systems A Requirement Speciication Language or Coniguration Dynamics o Multiagent Systems Mehdi Dastani, Catholijn M. Jonker, Jan Treur* Vrije Universiteit Amsterdam, Department o Artiicial Intelligence, De Boelelaan

More information

(Pessimistic) Timestamp Ordering

(Pessimistic) Timestamp Ordering (Pessimistic) Timestamp Ordering Another approach to concurrency control: Assign a timestamp ts(t) to transaction T at the moment it starts Using Lamport's timestamps: total order is given. In distributed

More information

Concurrency Control. Chapter 17. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke

Concurrency Control. Chapter 17. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke Concurrency Control Chapter 17 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke Confict Serializable Schedules Two schedules are confict equivalent if: Involve the same actions of the same

More information

AN ad hoc network is a collection of mobile nodes

AN ad hoc network is a collection of mobile nodes 96 IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, VOL. 19, NO. 7, JULY 008 A Sel-Stabilizing Leader Election Algorithm in Highly Dynamic Ad Hoc Mobile Networks Abdelouahid Derhab and Nadjib Badache

More information

Impact of Mobility on Concurrent Transactions Mixture

Impact of Mobility on Concurrent Transactions Mixture Impact of Mobility on Concurrent Transactions Mixture Ahmad Alqerem Zarka University, Jordan ahmad_qerm@zu.edu.jo Abstract This paper presents a simulation analysis of the impact of mobility on concurrent

More information

Reducing the Bandwidth of a Sparse Matrix with Tabu Search

Reducing the Bandwidth of a Sparse Matrix with Tabu Search Reducing the Bandwidth o a Sparse Matrix with Tabu Search Raael Martí a, Manuel Laguna b, Fred Glover b and Vicente Campos a a b Dpto. de Estadística e Investigación Operativa, Facultad de Matemáticas,

More information

Distributed Databases Systems

Distributed Databases Systems Distributed Databases Systems Lecture No. 07 Concurrency Control Naeem Ahmed Email: naeemmahoto@gmail.com Department of Software Engineering Mehran Univeristy of Engineering and Technology Jamshoro Outline

More information

A Read-Write-Validate Approach to Optimistic Concurrency Control for Energy Efficiency of Resource-Constrained Systems

A Read-Write-Validate Approach to Optimistic Concurrency Control for Energy Efficiency of Resource-Constrained Systems A Read-Write-Validate Approach to Optimistic Concurrency Control for Energy Efficiency of Resource-Constrained Systems Kamal Solaiman, Matthew Brook, Gary Ushaw, Graham Morgan School of Computing Science,

More information

Chapter 9: Concurrency Control

Chapter 9: Concurrency Control Chapter 9: Concurrency Control Concurrency, Conflicts, and Schedules Locking Based Algorithms Timestamp Ordering Algorithms Deadlock Management Acknowledgements: I am indebted to Arturas Mazeika for providing

More information

Foundation of Database Transaction Processing. Copyright 2012 Pearson Education, Inc.

Foundation of Database Transaction Processing. Copyright 2012 Pearson Education, Inc. Foundation of Database Transaction Processing Copyright 2012 Pearson Education, Inc. Chapter Outline - 17.1 Introduction to Transaction Processing - 17.2 Transaction and System Concepts - 17.3 Desirable

More information

Section II. Nios II Software Development

Section II. Nios II Software Development Section II. Nios II Sotware Development This section o the Embedded Design Handbook describes how to most eectively use the Altera tools or embedded system sotware development, and recommends design styles

More information

Analysis of Transaction and Concurrency Mechanism in Two Way Waiting Algorithm for different Databases

Analysis of Transaction and Concurrency Mechanism in Two Way Waiting Algorithm for different Databases Analysis of Transaction and Concurrency Mechanism in Two Way Waiting Algorithm for different Databases K.CHANDRA SEKHAR Associate Professer, Govt. Degree College(W),Madanapalli. Research Scholer,S.V.University,

More information

A Flexible Integration Strategy for In-Car Telematics Systems

A Flexible Integration Strategy for In-Car Telematics Systems A Flexible Interation Stratey for In-Car Telematics Systems Thomas Bauer Jens Herrmann Peter Liesmeyer Christopher Robinson-Mallett University of Potsdam Hasso-Plattner-Institute thomas.bauer @hpi.uni-potsdam.de

More information

Some Inequalities Involving Fuzzy Complex Numbers

Some Inequalities Involving Fuzzy Complex Numbers Theory Applications o Mathematics & Computer Science 4 1 014 106 113 Some Inequalities Involving Fuzzy Complex Numbers Sanjib Kumar Datta a,, Tanmay Biswas b, Samten Tamang a a Department o Mathematics,

More information

Chapter 5. Concurrency Control Techniques. Adapted from the slides of Fundamentals of Database Systems (Elmasri et al., 2006)

Chapter 5. Concurrency Control Techniques. Adapted from the slides of Fundamentals of Database Systems (Elmasri et al., 2006) Chapter 5 Concurrency Control Techniques Adapted from the slides of Fundamentals of Database Systems (Elmasri et al., 2006) Chapter Outline Purpose of Concurrency Control Two-Phase Locking Techniques Concurrency

More information

Mobile Robot Static Path Planning Based on Genetic Simulated Annealing Algorithm

Mobile Robot Static Path Planning Based on Genetic Simulated Annealing Algorithm Mobile Robot Static Path Planning Based on Genetic Simulated Annealing Algorithm Wang Yan-ping 1, Wubing 2 1. School o Electric and Electronic Engineering, Shandong University o Technology, Zibo 255049,

More information

230 Chapter 17. (c) Otherwise, T writes O and WTS(O) is set to TS(T).

230 Chapter 17. (c) Otherwise, T writes O and WTS(O) is set to TS(T). 230 Chapter 17 (c) Otherwise, T writes O and WTS(O) is set to TS(T). The justification is as follows: had TS(T )

More information

First Video Streaming Experiments on a Time Driven Priority Network

First Video Streaming Experiments on a Time Driven Priority Network First Video Streaming Experiments on a Driven Priority Network Mario Baldi and Guido Marchetto Department o Control and Computer Engineering Politecnico di Torino (Technical University o Torino) Abstract

More information

Improving Data Consistency in Mobile Computing Using Isolation-Only Transactions

Improving Data Consistency in Mobile Computing Using Isolation-Only Transactions Improving Data Consistency in Mobile Computing Using Isolation-Only Transactions Qi Lu M. Satyanarayanan School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 fluqi,satyag@cs.cmu.edu

More information

MetaTeD A Meta Language for Modeling. Telecommunication Networks. Kalyan S. Perumalla and Richard M. Fujimoto

MetaTeD A Meta Language for Modeling. Telecommunication Networks. Kalyan S. Perumalla and Richard M. Fujimoto MetaTeD A Meta Lanuae or Modelin Telecommunication Networks Kalyan S. Perumalla and Richard M. Fujimoto (kalyan@cc.atech.edu and ujimoto@cc.atech.edu) Collee o Computin Georia Institute o Technoloy Atlanta,

More information

Performance Evaluation of Two-Shadow. Speculative Concurrency Control. Spyridon Braoudakis. Boston University.

Performance Evaluation of Two-Shadow. Speculative Concurrency Control. Spyridon Braoudakis. Boston University. Performance Evaluation of Two-Shadow Speculative Concurrency Control Azer Bestavros (best@cs.bu.edu) Spyridon Braoudakis (sb@cs.bu.edu) Euthimios Panagos (thimios@cs.bu.edu) Computer Science Department

More information

Heuristic Searching: A* Search

Heuristic Searching: A* Search IOSR Journal of Computer Enineerin (IOSRJCE) ISSN: 2278-0661 Volume 4, Issue 2 (Sep.-Oct. 2012), PP 01-05 Nazmul Hasan (Department of Computer Science and Enineerin, Military Institute of Science and Technoloy,

More information

RTL Modeling in C++ Technical Report ICS April 30, Shuqing Zhao. Irvine, CA , USA (949)

RTL Modeling in C++ Technical Report ICS April 30, Shuqing Zhao. Irvine, CA , USA (949) RTL Modelin in C++ Technical Report ICS-01-18 April 30, 2001 Shuqin Zhao Department o Inormation and Computer Science University o Caliornia, Irvine Irvine, CA 92697-3425, USA (949)824-8059 szhao@ics.uci.edu

More information

Concurrency Control. Chapter 17. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1

Concurrency Control. Chapter 17. Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Concurrency Control Chapter 17 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Conflict Schedules Two actions conflict if they operate on the same data object and at least one of them

More information

Computationally Light Multi-Speed Atomic Memory

Computationally Light Multi-Speed Atomic Memory Computationally Light Multi-Speed Atomic Memory Antonio Fernández Anta 1, Theophanis Hadjistasi 2, and Nicolas Nicolaou 1 1 IMDEA Networks Institute Madrid, Spain antonio.ernandez@imdea.org, nicolas.nicolaou@imdea.org

More information

Using VCS with the Quartus II Software

Using VCS with the Quartus II Software Using VCS with the Quartus II Sotware December 2002, ver. 1.0 Application Note 239 Introduction As the design complexity o FPGAs continues to rise, veriication engineers are inding it increasingly diicult

More information

Last Class Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications

Last Class Carnegie Mellon Univ. Dept. of Computer Science /615 - DB Applications Last Class Carnegie Mellon Univ. Dept. of Computer Science 15-415/615 - DB Applications C. Faloutsos A. Pavlo Lecture#23: Concurrency Control Part 2 (R&G ch. 17) Serializability Two-Phase Locking Deadlocks

More information