Click here to Skip to main content
15,890,336 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: Windows XP network settings Pin
Johpoke2-Jan-08 0:08
Johpoke2-Jan-08 0:08 
GeneralRe: Windows XP network settings Pin
dhruvchandna8-Jan-08 0:57
dhruvchandna8-Jan-08 0:57 
GeneralRe: Windows XP network settings Pin
Jerry Hammond5-Jan-08 5:08
Jerry Hammond5-Jan-08 5:08 
GeneralRe: Windows XP network settings Pin
dhruvchandna8-Jan-08 1:02
dhruvchandna8-Jan-08 1:02 
GeneralRe: Windows XP network settings Pin
Hesbon Ongira7-Jan-08 22:29
Hesbon Ongira7-Jan-08 22:29 
GeneralRe: Windows XP network settings Pin
dhruvchandna8-Jan-08 1:01
dhruvchandna8-Jan-08 1:01 
Questionhow to unlink multiple files Pin
amit.code1-Jan-08 21:28
amit.code1-Jan-08 21:28 
QuestionPlease Please reply quickly Pin
little cloud1-Jan-08 1:55
little cloud1-Jan-08 1:55 
Overview
A Multi-version Timestamp Ordering Simulator (MTOS) is a program that takes in a schedule, applies on it Multi-version Timestamp Ordering, then outputs the names of the transactions that are going to be aborted if this schedule is implemented in a real system using Multi-version Timestamp Ordering. The following is a detailed description of the program.

Input
The input to MTOS should be a schedule of operations. The schedule is saved in a text file (.txt). And the file name is input to MTOS. Each line in the file is in the following format:

Operation TransactionNum [DataItemNum]

Operation is the operation to be performed. It is one of the following:
• begin indicates the beginning of a transaction.
• read indicates a read operation on a data item by a transaction.
• write indicates a write operation on a data item by a transaction.
• Commit indicates an end of a transaction.

TransactionNum is the number of the transaction performing the operation. It is a non-negative integer.

DataItemNum is the number of the data item the operation is performed on. It is a non-negative integer.

Sample Input Lines
begin 4 means that T4 has started.
read 8 5 means that T8 is reading X5.
write 20 3 means that T20 is writing X3.

Sample Input File à input1.txt
begin 1
read 1 3
write 1 3
begin 2
read 2 4
begin 3
read 3 6
commit 3
read 2 3
write 2 3
read 1 4
write 1 4
commit 1
commit 2

Note: All input is in lowercase.

Output
MTOS produces output in a text file residing in the same directory as MTOS. The file should have the following name “result_X.txt”. X is the input file name (without the extension) for which this output is produced. The system produces exactly 1 line of output transaction aborted after applying multi-version:

TX has aborted.
TY has aborted.

Transaction X aborted THEN transaction Y aborted. Order is important.

Sample Output File for input1.txt à output file name: result_input1.txt
T1 has aborted.

Implementation Notes
• After the input file is read, Multiversion timestamp ordering is applied by building an in-memory table to hold the read and write timestamps of the different versions of each data item.
• Keep track of previous changes to each field in case a transaction is aborted and you need to go back to the previous value in the schedule.
• Use a counter to assign timestamps to transactions.
• Do not worry about cascading rollbacks.

Assignment
1- Implement MTOS described above using any programming language.
a. Name your program MTOS.
b. Your program should take from the command line one argument which is the input file name.
c. The output of your program is a text file named inputFileName_result.txt. Where inputFileName is the name of the input file without the extension.
d. You need to follow the input\output format very carefully. Grading will be done automatically so any difference in formatting may lead to errors and therefore you getting a zero.

Both will help him thanks a lot
GeneralRe: Please Please reply quickly Pin
User 17164921-Jan-08 3:03
professionalUser 17164921-Jan-08 3:03 
GeneralRe: Please Please reply quickly Pin
Jerry Hammond1-Jan-08 4:31
Jerry Hammond1-Jan-08 4:31 
GeneralRe: Please Please reply quickly Pin
User 17164921-Jan-08 4:38
professionalUser 17164921-Jan-08 4:38 
GeneralRe: Please Please reply quickly Pin
little cloud3-Jan-08 5:43
little cloud3-Jan-08 5:43 
GeneralRe: Please Please reply quickly Pin
Jerry Hammond5-Jan-08 4:48
Jerry Hammond5-Jan-08 4:48 
QuestionDual-Boot W/ 2 Harddrives? Pin
Matt U.31-Dec-07 10:42
Matt U.31-Dec-07 10:42 
GeneralRe: Dual-Boot W/ 2 Harddrives? Pin
Mike Dimmick2-Jan-08 14:21
Mike Dimmick2-Jan-08 14:21 
GeneralRe: Dual-Boot W/ 2 Harddrives? Pin
ruready51115-Jan-08 5:31
ruready51115-Jan-08 5:31 
GeneralInstal ATP server Web Server on Win2K3... Pin
achainard28-Dec-07 9:08
achainard28-Dec-07 9:08 
QuestionMicrosoft Visual C++ Runtime Library Pin
Musimusi27-Dec-07 20:32
Musimusi27-Dec-07 20:32 
GeneralExplorer.exe Pin
vimal_yet27-Dec-07 0:48
vimal_yet27-Dec-07 0:48 
GeneralRe: Explorer.exe Pin
Rajesh R Subramanian27-Dec-07 23:49
professionalRajesh R Subramanian27-Dec-07 23:49 
GeneralRe: Explorer.exe Pin
csciwizard31-Dec-07 7:32
csciwizard31-Dec-07 7:32 
GeneralRe: Explorer.exe Pin
Gandalf_TheWhite1-Jan-08 1:44
professionalGandalf_TheWhite1-Jan-08 1:44 
GeneralArtifical Network Pin
vimal_yet26-Dec-07 17:42
vimal_yet26-Dec-07 17:42 
GeneralRe: Artifical Network Pin
Jerry Hammond1-Jan-08 4:27
Jerry Hammond1-Jan-08 4:27 
GeneralProblem when re apply permission to the new DC Pin
Mekong River24-Dec-07 21:21
Mekong River24-Dec-07 21:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.