Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

One of the most important properties of database transaction management is consistency.

Synchronization of the reads and writes of data is a crucial step in achieving consistency. In this lab, please use SimPy to simulate database transaction reading and writing.

Your project should randomly generate read and write events that will read or write a set of data for a period of time.

The simulation times, number of data blocks, and longest read or write time period are set at the beginning of the simulation.

The simulation time needs to be at least 2xnumber of data blocks x longest read or write time Strategy 1: typically reader and writer: This is the typical strategy where there are multiple readers and a single writer Read Request: if there is no write lock on the data, then grant read lock for the period of time requested.

If there is a write lock, then wait till the read lock is free and it is the reader's turn. Write Request: if there is no write lock on the data, then grant write lock for the period of time requested.

If there is a write lock, then wait till the write lock is free and it is the writers' turn. Lab A: Utilizing this strategy there is still a chance for starvation.

Please suggest and implement a solution that would avoid starvation. Strategy 2: invalid dirty write This approach assumes that the likelihood of write conflict is rare.

Thus, locks to read or write are not acquired, but rather the timestamp of the last read/write is used.

If the time stamp of the last read/write is after the start of the current write, the write is invalidated and the write transaction is reattempted.

Lab B: please implement this strategy and run the simulation to see how many data blocks do you need to reduce the average percent (at least 10 runs) write invalid events to below 5% * If you are working on this project by yourself, you may choose either part A or B. SimPY is a simulation package that you can install after you have setup your Python environments.

Anaconda is a simple Python package with most of the libraries and packages installed. SimPY can be installed via "pip install simpy" after conda install.

Examples of interests includes: Resources: Store (Event Latency and Process Communication) and Shared events: Move Renege.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93073093

Have any Question?


Related Questions in Computer Engineering

There are several different vdi technologies and many

There are several different VDI technologies and many different VDI providers. For this discussion select, one VDI software provider offering a Centralized VDI approach and another provider offering Hosted VDI. Compare t ...

Question the sunshine health corporation would like you to

Question : The Sunshine Health Corporation would like you to provide an updated explanation and reference guide on 802.11 standards and specifications. Briefly explain the advantages and disadvantages of each. If you loc ...

For the following c statement what is the corresponding

For the following C statement, what is the corresponding RISC-V assembly code? Assume that the variables f, g, h, and i are given and could be considered integers as declared in a C program. Use a minimal number of assem ...

Access your browsers security settings and configure the

Access your browser's security settings and configure the browser to refuse all cookies or to prompt you before allowing a cookie. Restart the browser; then visit several different Web sites. Be sure to visit popular sit ...

This is a software testing techniques class so i want to

This is a software testing techniques class so I want to write about test paths using node/edge or edge-pair coverage using a real or fictitous software project. Compose a short email to the decision-maker in your organi ...

Suppose pointers are 4 bytes long and keys are 12 bytes

Suppose pointers are 4 bytes long, and keys are 12 bytes long. How many keys and pointers will a block of 16,384 bytes have?

In linux what synchronization methods they use within the

In Linux what synchronization methods they use within the kernel, please dig into your findings for Linux.

Simple scenariobull at the beginning of each semester

Simple Scenario • At the beginning of each semester, students get a course catalogue containing a list of course offerings for the semester. Information about each course, such as professor, department, and prerequisites ...

Discuss the importance of metadata and some of the various

Discuss the importance of metadata and some of the various ways (Microsoft) SQL Server allows you to expose that information. References welcomed to learn where to find obscure IT information (books, articles, websites)

What are some skills individuals who work in the field of

What are some skills individuals who work in the field of cyber security need to prevent hacks in to a company's computers?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As