Compare the performance to that obtained using regular locks

Assignment Help Basic Computer Science
Reference no: EM131091145

Write a threaded program for solving a 15-puzzle. The program takes an initial position and keeps an open list of outstanding positions. This list is sorted on the "goodness" measure of the boards. A simple goodness measure is the Manhattan distance (i.e., the sum of x -displacement and y-displacement of every tile from where it needs to be). This open list is a work queue implemented as a heap. Each thread extracts work (a board) from the work queue, expands it to all possible successors, and inserts the successors into the work queue if it has not already been encountered. Use a hash table (from Problem 7.9) to keep track of entries that have been previously encountered. Plot the speedup of your program with the number of threads. You can compute the speedups for some reference board that is the same for various thread counts.

Problem 7.9 Change the locks to read-write locks in the hash table and use write locks only when inserting an entry into the linked list. Examine the performance of this program as a function of k. Compare the performance to that obtained using regular locks.

Reference no: EM131091145

Questions Cloud

Solve a triangular system of equations of the form ux = y : Describe a pipelined algorithm for performing back-substitution to solve a triangular system of equations of the form Ux = y , where the n x n unit upper-triangular matrix U is 2-D partitioned onto an n x n mesh of processes
A professional cover letter for a potential employer : In today's technological world, it is critical to be able to introduce yourself well in writing. The way in which you present this information may be the "thing" that sets you apart from the competition.
Implement a multi-access threaded queue with multiple thread : Repeat Problem 7.2 using condition variables (in addition to mutex locks). Document the time for the same test case as above. Comment on the difference in the times.
U.s. department of education or the national education : Create one activity (to work for a group of families) that will encourage the positive relationship between an educator and a students' family. The academic activity/strategy should focus on the community as a whole and increasing the involvement ..
Compare the performance to that obtained using regular locks : Change the locks to read-write locks in the hash table and use write locks only when inserting an entry into the linked list. Examine the performance of this program as a function of k. Compare the performance to that obtained using regular locks.
Compare your performance with the previous case : Compare your performance with the previous case
The business development proposal at kids paradise : The business development proposal at kids paradise
Calculate the sound pressure level : Three small fans are located near each other at 1.5 m above the ground, and produce an annoying noise in the 250 Hz band. A localresident whose bedroom window is at the same height as the fans and is 80 m away complains about this noise. Measurements..
Building culturally responsive family-school relationships : Chapter 11: Engaging in Collaborative Problem Solving with Families. Chapter 12: Family-Centered Parent Involvement and Shared Decisions Making in Special Education Classrooms

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifying and describing how information is used

Write a 700- to 1,050-word paper identifying and describing how information is used and how it flows in an organization.

  Determine the estimated time needed

You have just started your new job as a junior programmer at Wrigh's Design House. The Project Manager has asked you to develop a program to determine the estimated time needed to complete a design project.

  Size of an address field

You are designing an instruction set for your computer. All the instructions are of same size (11 bits long). The size of an address field is 4 bits. You have already designed five 2-address instructions and 40 1-address instructions. How many 0-a..

  Describe not be able to perform without microsoft office

Assume that you did not have access to Microsoft Office or other compatible application suites. Describe at least three (3) tasks that you would not be able to perform without Microsoft Office 2013.

  Assignment school engineering and information technology

atrobe Valley Product Gallery (LVPG) specialises in promoting and selling both (i) stand space at trade fairs and (ii) tickets for visitors to trade fairs in Latrobe Valley, Gippsland area.

  Diagnos application which has changed from original state

How does third-party plug-ins change process of diagnosing and troubleshooting errors within application? What steps would you take in diagnosing the application which has been changed from its original state?

  How to solve performance problem of computer

Your friend recommends upgrading RAM to 256 MB to correct performance problems. Is there any other way to solve performance problem? Justify your answer.

  E-commerce web site

Final project will be a Java programming project that uses design patterns to help form a dynamic Web database application. Final Project:  e-commerce Web Site

  What are the benefits, drawbacks, and business

What are the benefits, drawbacks, and business impacts of RAID 1, RAID 5, and RAID 1

  Define and implement a class for the adt stack

Define and implement a class for the ADT stack that is a descendant of Front List.

  How documents appear both on the screen and when printed

Changing options in the screen affects how documents appear both on the screen and when printed

  Use new and emerging technologies to improve their business

Description Your task is to act as a consultant to the business and provide them with detailed feedback and advice on the following. How they can use new and emerging technologies to improve their business For example, the following areas (In addi..

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