How many threads will you create to perform the input

Assignment Help Basic Computer Science
Reference no: EM13713870

A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened. Similarly, all output is performed just before the program terminates, when the program results must be written to a single file. Between startup and termination, the program is entirely CPUbound.

Your task is to improve the performance of this application by multithreading it. The application runs on a system that uses the one-to-one threading model (each user thread maps to a kernel thread).

Question 1- How many threads will you create to perform the input and output? Explain.

Question 2- How many threads will you create for the CPU-intensive portion of the application? Describe.

I was hoping someone can explain on a high level as to how this happens.

Reference no: EM13713870

Questions Cloud

Devise a linear-time algorithm : Devise a linear-time algorithm to count the parallel edges in a graph. Write the algorithm in pseudocode.
Suggest a sub-network design : Acme Computing Corp. has remote sites in Port Clinton and Napoleon in addition to their main site in Toledo. There are currently 29 devices connected to the network in Toledo. The corporate plan is to link the Port Clinton and Napoleon offices to ..
Explain what is the ph of the solution at the points : A 25 mL sample of .1 M HCl is titrated with .1 M NaOH. What is the pH of the solution at the points where 24.5 mL and 24.9 mL of NaOH have been added.
An expansion and simultaneous replacement of old equipment : This project will replace some existing equipment which currently has a book value (BV) of $200k and an estimated market salvage value of $375k. The new project will require new equipment costing $2.0 M, which will be depreciated straight-line to ..
How many threads will you create to perform the input : How many threads will you create to perform the input and output and how many threads will you create for the CPU-intensive portion of the application
What is the frequency of microwave radiation : What is the frequency of microwave radiation which has a wavelength of 10.7 cm (c= 3.0 × 108 m/s)
How much acyclovir is needed by the patient : Weight of Patient: 176 lbs RX: Acyclovir 5mg/kg in 250ml NS; infused at a constant rate over 1 hour. How much Acyclovir is needed by the pt
Computes all magic numbers : Write a program that, for any upper limit, computes all magic numbers less than that limit - A magic number is defined as a positive integer which is equal to the sum of its own factors
Explain how much co2 is produced by a car driven : How much CO2 is produced by a car driven 20000 miles in one year. Assume the car gets 20mi/4L of gas, gas has the chemical formula of octane, one liter of gas has a mass of .8kg, gas is completely burned to CO2 and H2O

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Briefly explain who a hacker is

Briefly explain who a hacker is and what the activities of a hacker are?

  Write a program that prompts the user for a measurement

write a program that prompts the user for a measurement in meters and then converts it to miles, feet and inches.

  What is the total efficiency of the protoco

What is the total efficiency of the protocol with these three nodes?

  Explain vulnerability in the system

How would you respond if Goli came to you describing a vulnerability in your system and offering to help fix it--What would incline you to hire her? What would disincline you from doing so?

  Write a multithreaded program

Make sure it is able to compile a program prog.c with pthread, do "gcc -lpthread -o prog prog.c" Need the: a) The code b) Screenshot of the terminal showing your program running with at least 8 (different) numbers as run-time input.

  Write overall approach when application developer needs data

Describe overall approach when application developer needs to show in form data from the database table

  What does it mean to take a systems view of a project

As an IT project manager, you may take a systems view of a project.

  How do you add all the elements of an arraylist

how do you add all the elements of an ArrayList favorite? I need help on creating class and client.

  Two main functions of user accounts in a network

What are the two main functions of user accounts in a network?

  Technologies dependent on the use of cryptography

How are biometric technologies dependent on the use of cryptography?

  Class named commission that includes two numeric variables

Create a class named Commission that includes two numeric variables: a sales figure and a commission rate. Also create two overloaded methods name computeCommission(). The first method takes two numeric arguments representing sales and rate, multi..

  Discuss the role of cognitive psychology

Explain and justify the need for good HCR practice and discuss the role of cognitive psychology in the design of user interfaces and select appropriate communication styles for interactive systems.

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