Implementation and explain the measured behavior

Assignment Help Computer Engineering
Reference no: EM131148672

Application: Implementing and Analyzing a Threaded Sort Algorithm

Once a software application has been implemented and released, that is by no means the end of development. There are all kinds of causes requiring software to be changed, from users reporting bugs, through changes in third-party software, to updates for improved performance. A critical skill of software developers is the ability to understand and update a program's algorithm.

For this Assignment, you will update an existing Java program using the NetBeans IDE. You will use the NetBeans Integrated Development Environment to make changes to an existing NetBeans Java Project. This existing program correctly sorts the data without using threads and contains a method(threadedSort) that you will update to sort the data using threads.

To prepare:

Read this week's Resources.

Visit the NetBeans download page from this week's Resources. Download the Java SE bundle. (Note:Select the most recent release version, not a Beta version.)

Run the downloaded package to install it. Choose the default options for installation.

Unzip and open the Unthreaded Program:

Download and unzip the fileWeek2_Project.zip. This will create a folder containing a NetBeans Project with the non-threaded java program. Note the location of this folder.

Launch the NetBeans IDE. Click theOpen Project...button(Or click theFiledrop-down menu and selectOpen Project...). Navigate to the project folder, select it, and clickOpen Project.

The Java Project contains three class files:MergeSort.java,Sort.java, and SortTest.java.Double-click each file in theProjectsection (at the left of the NetBeans IDE window) to display the file's contents. Each of the Java class files contains comments explaining the purpose of the class and the purpose of the class' methods.

By Day 7, modify the Java program by adding threads, and analyze the performance of both the threaded and non-threaded versions.
Modify the Program:

Improve the performance of the Java program by adding threads to theSort.javafile. Implement thethreadedSort()method within theSortclass. Reuse any of the existing methods by calling them as necessary from yourthreadedSortmethod. You may add additional methods to theSortclass, if necessary.

Analyze the Program:

When running the providedSortTestprogram, the output presents data to support analyzing the performance of the threaded and non-threaded sort methods. Analyze your threaded implementation by comparing its performance to the original non-threaded implementation and explain the measured behavior. Document your analysis as a short paper (1-3 pages), using APA format. Be sure to discuss the relative performance improvement you expect for your threaded implementation and how the expected performance compares to the measured performance.

Reference no: EM131148672

Questions Cloud

Presidential disaster declaration : Describe the tasks that a local government must perform during disaster recovery. In addition, identify the types of federal assistance that are available to a community following a Presidential Disaster Declaration.
What challenges do global markets pose for brand management : Is Global Branding important to consumers? Why (or why not) and how? What characteristics do consumers associate global brands with when making purchase decisions? Give examples of how global branding affected a purchase decision you have made. What ..
Main types of government and private sector contracts : Discuss the three main types of government and private sector contracts: time and materials, fixed price, and cost reimbursable, when they are applicable, and what the advantages/disadvantages are for each?
Relying on conventional conception of another group : The steps in stakeholder planning include all but which of the following? Decision-making bias under which people are willing to commit additional resources to a failing course of action is called ________. Relying on a conventional conception of ano..
Implementation and explain the measured behavior : Analyze your threaded implementation by comparing its performance to the original non-threaded implementation and explain the measured behavior.
Describe in detail this existing or proposed hybrid approach : Using any two or more of the planning approaches you have just described and discussed, explain how these might be combined to become useful as a hybrid approach. If you choose a hybrid approach that is not a result of your own original thought, p..
What is the bond premium or discount : Guehler Electric sold $ 2,928,000 , 11 %, 10-year bonds on January 1, 2014. - Guehler Electric uses the straight-line method to amortize bond premium or discount.
Write a java class called student : Write a Java class called Student which can be used to represent the details of a Student together with some associated operations. The Student class will have the following information: Title of the student (eg, Mr, Miss, Ms, Mrs etc.)
Provide a hypothetical example of a modern-day burglary : How has the definition of burglary changed from the old common law definition? Analyze the crime of burglary, including the actus reus and mens rea of burglary. Also provide a hypothetical example of a modern-day burglary.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Developing the modular program

Develop the modular program which asks user in order to enter the monthly costs for following expenses incurred from the operating his or her automobile: loan payment, gas, insurance, oil, tires, and maintenance.

  Converting the sum of elements of array into octal format

Provided an array of ints named x and an int variable named total that has already been declared, write down some code which places the sum of all the elements of the array x into total.

  C program to implement sieve of erastosthenes

Prepare a C program which implements the Sieve of Erastosthenes and determines the primes among the first N integers that you enter through a prompt or the command line.

  General knowledge recommends that pseudo code or flowcharts

general knowledge suggests that pseudo code or flowcharts can include clear and obvious logic errors. give your opinion

  Discuss various ergonomic guidelines with regard to text

Discuss the various ergonomic guidelines with regard to the manner in which text and graphics should be presented on a VDT (computer screen).

  To begin to combine and demonstrate skills in drawing tools

to begin to combine and demonstrate skills in drawing tools tweens working with text and telling a storyassignment

  Difference between stratified and random sampling

What is the difference between stratified and random sampling and what were the similarities and differences between oneperquad and twoperquad? Be sure to explain pattern, dispersion, and density.

  Determine the best manner to encode each character

Suppose a document contains 22 A, 12 B, 24 C, 6 D, 27 E, 9 F. Determine the best manner to encode each character with the least number of bits by a greedy approach.

  Select a current computer-crime trendwrite a 1400- to

select a current computer-crime trend.write a 1400- to 1750-word paper that describes a cybercrime trend that society

  Call a unary language an arithmetic progression

Call a unary language an arithmetic progression if it is the set {\(x^{m+ni}\)} : i >= 0 for some m and n show that if a unary language is regular , then it is the union of a finite set and a finite number of arithmetic progressions

  Determine the capacitance full-wave rectifier

Assume the input signal to a rectifier circuit has a peak value of Vm = 12 V and is at a frequency of 60 Hz. Assume the output load resistance is R = 2kΩ and the ripple voltage is to be limited to Vr= 0.4 V. Determine the capacitance required to y..

  What is new deployment technology for the .net 2005

what is new deployment technology for the .NET 2005

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