Databases for real time systems are meant for the use of both hard and soft systems. Since hard real time systems needs strict timing constraints, conventional disk based databases are not suitable, but soft real time systems makes use of disk based systems through FCFS, Elevator or scan policy algorithm.
There should be some solution for [...]
Continue reading Database for Hard Real time Systems
In disk based scheduling, the disks are located and traced by traversing the sectors and tracks. Tracks are concentric circles and sectors are just originating from the center of the disks.So, disk scheduling algorithms are slower when compared with the memory based scheduling. Under disk based schedulingTa=Tw+Tp+TtTa is the access timeTw is the time spent [...]
Continue reading Databases for Soft Real Time System
Pessimistic Concurrency Control
The transactions are been checking for violating the serialization consistency before letting it execute is called pessimistic concurrency control
Two phase locking Scheme
Read /Write lock as a phase
Unlock – another phase
Both the above phases wont interleave, because of this, there may be deadlock, which can be detected by means of deadlock [...]
Continue reading Concurrency Control Issues
Transaction Abortions
Transaction abortion is of two types, either
Termination abortion or
The Transaction which is aborted in this way won’t be restarted
Example: An attempt to divide by zero error
Non Termination Abortion
The transaction which will be restarted after it is being aborted
Example: data conflict due to a deadlock, If two transactions are involved in a deadlock, [...]
Continue reading Transaction Abortions
A One day workshop on Network Simulator 2 was conducted at Sri Vidya Niketan Engineering College, Tirupathi during March 2009. I have been invited there to give a guest lecture on Network Simulator 2.
Topics covered on the day are
Introduction to NS2, Linux and TCL
Installation of NS2
Wired and Wireless Examples
Recompiling a New Linux Kernel
Continue reading Network Simulator 2 -Workshop
Transaction Priorities
Transactions are granted access to the processors based on their priorities.
All the transactions in the real time DB are associated with a deadline, hence Earliest Deadline First (EDF) algorithm finds a greater solution to schedule those transactions. But EDF algorithm will be working efficiently if the number of transactions are moderate. But usually [...]
Continue reading Transaction Priorities
Main Memory Databases
The entire database is residing on the main memory is the concept behind main memory databases. But there are some problems like data backups and storing logs. So Main memory databases are to rely on Disk based systems to store logs and backups.
General purpose databases are really huge to sit in to [...]
Continue reading Main Memory Databases
Download NS2 from the following Website, I tried version ns-allinone-2.33.tar.gz.
Put the file under /home/pradeep/ (my user login is pradeep, you may try with your username)
go the folder in the shell prompt by issuing the following command cd /home/pradeep/
Since installation of NS2 simulator needs some [...]
Continue reading Installing NS2 under Ubuntu 8.04.1, 8.10, 9.04
The queries associated with a Real time databases are associated with a deadline, there may be some response after the queries passed the deadlines.
The data returned in response to a query must have absolute and relative consistency.
Absolute Vs Relative Consistency
Absolute consistency is accuracy. The data returned in response to a query must be close [...]
Continue reading Real Time Vs General Purpose Databases
Transaction
It is said to be set of read or write operations
Query
A Transaction is said to be a query if it contains either a read or update operation
Commit is a point of no return, once a transaction is commited we are certain that, the changes to the database are permanent
ACID Properties of a General Purpose [...]
Continue reading Introduction to Real Time Databases