Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91904140
  • Price:- $50

Priced at Now at $50, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Suppose you take out a loan for 9000 at 12 ordinary

Suppose you take out a loan for $9,000, at 12% ordinary interest. If the amount of interest is $762.00, what is the time period? (Round any fraction to the next higherday)

Use the information on the market for bicycles to answer

Use the information on the market for bicycles to answer the following questions. Demand: P = -125*Q + 540; Supply: P = 150*Q + 210, where P is the price of bicycle and Q is the quantity demanded or supplied of bicycle. ...

Question what is a ipsec ssl vpn dtls dmarc pki pem ssh

Question : What is a( IPSEC, SSL , VPN, DTLS , DMARC, PKI, PEM, SSH, Kerberos, DKIM) ?. Brifley and answer the following brief. Identify the security problems How the security protocol was used to solve the problems OR e ...

Question having a strong statistical picture of data is

Question : Having a strong statistical picture of data is important to being able to properly identify trends in statistical analysis. In R, how can an analyst identify appropriate sample distributions and test for norma ...

Do you need computers or information and communication

Do you need computers or information and communication technologies to store, organize, and manage data in organizations? Explain how the present day organizations in a developed country like the USA store and manage the ...

Show that the set alldfa and allnfa is complete for one of

Show that the set ALLdfa and ALLnfa is COMPLETE for one of the main complexity classes ( P, NP , PSPACE etc)? Do we need to show 2 things for proving it is complete? Meaning for eg: If ALLdfa is in P and all other sets i ...

Explain a business process you are familiar with describe

Explain a business process you are familiar with. Describe how a computer-based information system is related (or used) in this business process. Explain how a computer-based information systems can improve the efficienc ...

There are sorted sequences l1 and l2 with 5 and 4 elements

There are sorted sequences L1 and L2, with 5 and 4 elements respectively. a) How many comparisons will it take to merge L1 and L2 in the best case? How many for worst case? Explain your answers. b) Let [54, 26, 93, 17, 7 ...

Question suppose the streets in a city are laid out in a

Question : Suppose the streets in a city are laid out in a perfect grid with avenues A through Z running parallel east-west, and First through Tenth Streets running parallel north-south. Give a count of the number of sho ...

Question what is an information system what are the

Question: What is an information system? What are the business benefits of information management? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

  • 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