Project code in visual studio console application

Assignment Help Programming Languages
Reference no: EM13100300

Project code in visual Studio Console application and class library

The PADI project aims at implementing a simpli ed distributed software transactional system.

1 Introduction

The goal of this project is to design and implement PADI-DSTM, a distributed system to manage data objects that reside in memory and can be shared by transactional programs that execute in di erent machines. This will be a simpli ed version of a Distributed Software Transactional Memory System[5, 2, 3].

To simplify the work, and make the project doable in the timeframe available for the project, the applications will only share a particular type of object, of type PadInt, that stores an integer that can only be accessed b y well de ned read and write methods.

The work will start b y writing a paper describing the solution . and only then should the system be developed sequentially in phases .

2 Architecture

The architecture of the PADI-DSTM includes a centralised master, a variable number of servers (that store data objects), and a variable number of clients that concurrently access one or more data objects transactionally. The clients run applications that are linked to the PADI-DSTM library and that access shared objects stored at the servers. Each server stores a set of shared objects. The servers' interfaces are identi ed b y a URL in the format "tcp : == < ip address >:< port > =Server". The students are free to implement the library as they wish; in particular, the implementation of the library methods may communicate with the centralised master if needed. Still, for scalability, the implementation should strive to use decentralised solutions as much as possible, such that the centralised master does not become a bottleneck.

The students may assume that the centralised master is always running and that it does not crash. Students may also assume that clients do not crash in the middle of the execution although they will terminate when the application reaches its end. Also, when testing and debugging the system they may assume that the master is launched before the servers. If a server does not nd the master active it is not required to provide service.

3 The PADI-DSTM Library

The library to be created b y the students is linked to each application that uses PADI-DSTM.
The library exports a set of methods that provide access to PADI-DSTM:

 bool Init(): this method is called only once by the application and initializes the PADI-DSTM library.
 bool TxBegin(): this method starts a new transaction and returns a boolean value in-dicating whether the operation succeeded. This method may throw a TxException. A TxException should include a string indicating what caused the exception.
 bool TxCommit(): this method attempts to commit the current transaction and returns a boolean value indicating whether the operation succeded. This method may throw a TxException.
 bool TxAbort(): this method aborts the current transaction and returns a boolean value indicating whether the operation succeeded. This method may throw a TxException.
 bool Status(): this method makes all nodes in the system dump to their output their current state.
 bool Fail(string URL): this method makes the server at the URL stop responding to external calls except for a Recover call (see below).
 bool Freeze(string URL): this method makes the server at URL stop responding to external calls but it maintains all calls for later reply, as if the communication to that server were only delayed. A server in freeze mode responds immediately only to a Recover call (see below), which triggers the execution of the backlog of operations accumulated since the Freeze call.

 bool Recover(string URL): this method makes the server at URL recover from a previous Fail or Freeze call.

The library also mediates the interaction with the shared distributed objects. Basically, it o ers primitives to create a shared object and to obtain a reference to a shared object that was previously created. Each object is uniquely identi ed by an integer id. For simplicity, we assume that all shared objects are of type PadInt. The methods exported by the library regarding the local object manager are the following:

 PadInt CreatePadInt (int uid): this method creates a new shared object with the given uid. Returns null if the object already exists.
 PadInt AccessPadInt (int uid): this method returns a reference to a shared object with the given uid. Returns null if the object does not exist already.
Each shared object can only be accessed in the context of a valid transaction. For this purpose, an object of type PadInt exports two di erent methods:
 int Read(): reads the object in the context of the current transaction. Returns the value of the object. This method may throw a TxException.

 void Write(int value): writes the object in the context of the current transaction. This method may throw a TxException.
A transaction may abort as a result of a read or write operation. In this case a TxException exception is triggered, whose internal contents (e.g. a string) should help in describing the cause of the transaction abort. Additionally, TxException exception should be triggered with informative string if somehow the input is considered invalid.

4 Consistency

The system should provide sequential consistency. The students should refer to the classes and to the bibliography of the course for the details of this consistency model[1, 4].

5 Fault Tolerance (optional)

The students must rst implement a version of the system that is not required to tolerate faults. If, and only if, this version is operating correctly should the students consider implementing a fault-tolerant version of the system. The fault-tolerant version is only required to tolerate the failure of a single server node. Clients are assumed never to fail.

In the fault-tolerant version of the system each data object must be stored in at least two di erent server nodes. Also a server node should be able to crash without blocking or compromising the consistency of the data, i.e., if a server node crashes during the execution of a transaction the atomicity must be preserved: either the transaction commits before the crash and the updates will be visible to the other servers, or the server node fails before the transaction commits and none of the updates of the interrupted transaction become visible.

Furthermore, whenever a server node commits a transaction, the updates must have been replicated (and ready to commit) at least in another server node, such that the results of the transaction survive a potential failure.

Attachment:- Project Visual Studio.zip

Reference no: EM13100300

Questions Cloud

Mean number of calls per salesperson per week : The standard deviation of the sample is 2.5 calls. Using the .05 significance level, can we conclude that the mean number of calls per salesperson per week is more than 44?
Create list of change imperatives to drive change in company : Create the list of change imperatives which this VP is missing in his half-hearted effort to drive change. Criticize this VP's approach to driving change from perspective of discontinuous change.
Probability density of the net weight in ounces : The probability density of the net weight in ounces of a packaged compound is f(x)=2.0 for 19.75
List the general requirements of an llc : list the general requirements of an LLC, partnership and corporation. Find an example of a business organization that is an LLC.
Project code in visual studio console application : Project code in visual Studio Console application and class library and the PADI project aims at implementing a simpli ed distributed software transactional system.
Idea of human resource department to the managing partner : What do you think about the idea of a human resource department in a professional office? How would you sell the idea of a human resource department to the managing partner?
Defining relation and the complete effect alias structure : There are 6 different factors labeled as A, B, C, D, E, and F. Given that D=AB, E=-AC, F=-BC, please provide the corresponding 26-3 design table. Also, please write down the complete defining relation and the complete effect alias structure.
Test null hypothesis against alternative hpothesis : test null hypothesis: Meu=80 against alternative hpothesis=negative = 80 (alpha =.05). What does this tell you about meu?
Queuing theory-wheat harvesting : The wheat harvesting season is short. Farmers deliver their truck loads of wheat to a giant central storage bin within a two-week span. Because of this, wheat-filled trucks waiting to unload and return to the fields have been known to back up for ..

Reviews

Write a Review

Programming Languages Questions & Answers

  Specific changes made for different countries-sites directed

Why were these specific changes made for different countries at whom the sites were directed? Is there anything else you would consider changing.

  Comparing running time of two algorithm

Which algorithm would you prefer on the basis of running time, suppose all other factors equal?

  Unix systems administration

Unix Systems Administration

  Write program which prints question and reads user input

Write the program which prints question "Do you want to continue?" and reads user input. If user input is "Y", "Yes", "OK", "Sure", or "Why not?", print out "OK".

  Probability line is executed in nth iteration of for loop

What is the probability that line is executed during the nth iteration of the for loop? What is the exact expected number of executions of line?

  Create program which tests each member of resistor class

Create program which tests each member of Resistor class to ensure that they work properly. Complete the following Tasks: Create main function and instantiate three Resistor Class objects: Resistor1, Resistor2 and Resistor3.

  Write class which uses string array or arraylist

Write the class which uses string array or arraylist object to holld five students, array to hold five charters student letter grade) and five arrays of doubles each to hold each students set.

  Write down public static method using public interface

Using only public interface of UnorderedLinkedList class, write down a method: public static void reverse(UnorderedLinkedList staff) that reverses the entries in a linked list.

  Write lisp function to reverse order of the elements in list

Write a Lisp function that: given a two-element list, reverse the order of the elements in the list (cannot use the LISP reverse function).

  Create and implement application which reads integer value

Create and implement application which reads the integer value representing a number grade. purpose of the program is to determine corresponding letter grade based on the following grade policy table

  Write program to reads student-s name together with score

Write a program that reads a student's name together with his or her test score. The program should then compute the average test score for each student.

  Use a two dimensional array to solve problem

Use a two dimensional array to solve the following problem. A company has four salespeople ( 1 to 4) who sell five different products ( 1 to 5).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd