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

  What restrictions must be imposed

Free Speech Online Some feel that there is too much objectionable material allowed on the Internet, whereas others argue that the Internet must be completely censored.what restrictions must be imposed.

  What some of the most common symptoms of malware

What are instance of harmful spyware application? What risk or threat do they pose to workstation domain.

  How to create an html form

Create an HTML form and a corresponding Java servlet that receives one or more parameters from the form and displays the result in a servlet generated dynamic page. Use the Tomcat server to run the exercise.

  Explain the effect of data rates on a network

discuss the effect of data rates on a network?

  Choose the strategies that seem to be complementary

Choose the strategies that seem to be complementary to one other and could be implemented simultaneously. Justify your response.

  Identify the key features of a laptop and a tablet next

explain the main factors that you should consider before deciding between a laptop or a tablet to buy.identify the key

  Program that has a function named presentvalue

Program that has a function named presentValue

  Show both the subscript of the largest item in arr

show both the subscript of the largest item in arr. want help with writing a program that: Lets arr be an array of 20 integers

  Difference between microsoft office and microsoft windows

Which applications are you likely to make use in the course of taking classes online.

  Encode the same sequence using run-length

Encode the following bit sequence using run-length encoding with 4-bit codes.

  Evaluating the wireless nics

Describe whether this is still true today, and state the factors which are moving wireless NICs into the more dominant role, if any.

  Questioncreate a shadow on phrase html5 canvas with an

questioncreate a shadow on phrase html5 canvas with an offeset -x of 2px an offset-y of 5px a blur of 6px and a

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