Write a program that uses sched_setaffinity()

Assignment Help Basic Computer Science
Reference no: EM131056666

If two processes use a pipe to exchange a large amount of data on a multiprocessor system, the communication should be faster if the processes run on the same CPU than if they run on different CPUs. The reason is that when the two processes run on the same CPU, the pipe data will be more quickly accessed because it can remain in that CPU's cache. By contrast, when the processes run on separate CPUs, the benefits of the CPU cache are lost. If you have access to a multiprocessor system, write a program that uses sched_setaffinity() to demonstrate this effect, by forcing the processes either onto the same CPUs or onto different CPUs. (Chapter 44 describes the use of pipes.)

Reference no: EM131056666

Questions Cloud

Describe the possible migration of ancient peoples : Describing the possible migration of ancient peoples; The influence that trade, agriculture, and tools had on movements; and How colonial actions and colonization impacted those among whom the colonists settled.
Performs the equivalent of pthread_once() : To keep the implementation simple, you can ignore possibilities such as init() failing or being canceled when first called from a thread (i.e., it is not necessary to devise a scheme whereby, if such an event occurs, the next thread that calls one..
Used by the executives and certain service personnel : LMC is considering purchase of a new company which may have the need to purchase an executive aircraft used by the executives and certain service personnel. The aircraft costs $1,475,000. LMC tax accountants estimate that the value of the aircraft wi..
Minutes on the viewing platform : On average, 30% of the tourists only visit Level 1 and return to the ground, while 70% visit both levels. On a typical day, the average tourist visiting Level 1 spends 15 minutes on the viewing platform, while the average tourist visiting Level 2..
Write a program that uses sched_setaffinity() : If you have access to a multiprocessor system, write a program that uses sched_setaffinity() to demonstrate this effect, by forcing the processes either onto the same CPUs or onto different CPUs. (Chapter 44 describes the use of pipes.)
What is its estimated value per share : Nabor Industries is considering going public but is unsure of a fair offering price for the company. Before hiring an investment banker to assist in making the public offering, managers at Nabor have decided to make their own estimate of the firm's c..
Should portfolio be invested actively using a mixture of two : Should the portfolio be invested actively, passively or using a mixture of the two? (As part of your answer, include definitions of active and passive and examples of each.)
What are the typical financial costs of an erp system : CIS3700 Information Technology for Management Assignment. What are the typical financial costs of an ERP system? Based on the text, what are the activities behind these costs (data conversion, training, etc.)? Why do companies attempt to impleme..
Value-added industries-what is the net present value : You are the CEO of Value-Added Industries, Inc. (VAI). Your firm has 10,000 shares of common stock outstanding, and the current price of the stock is $100 per share. What is the net present value of this project? How many shares of common stock must ..

Reviews

Write a Review

 

Basic Computer Science Questions & Answers

  Why is cross-border cybercrime expanding rapidly

What types of user authentication are used at your university and/or place of work? Do these measures seem to be effective? What if a higher level of authentication were implemented? Would it be worth it, or would it decrease productivity?

  Write a function in python

Write a function in Python that could open a file to read and get the function names in the file as a list of strings

  Generate the k-map for this circuit

You can safely assume that the intruder will try to enter the house using only one of the three entrances. If any of the door or window is opened, you need to set the alarm signal to 1. A 0 means the door/window is closed and 1 means open.

  Which operations are expensive

which operations are expensive?

  Computing characters are there in encyclopedia

The text of the Encyclopedia Britannica is about 44 million words. For a sample of about 2000 words, the average word length was 6.1 characters per word. Approximately how many characters are there in the encyclopedia?

  Both lagrange interpolation and newton''s interpolation

Use both Lagrange interpolation and Newton's interpolation formulae to find the polynomials for the

  Under a mle-estimated unigram probability model

Qatar university, the largest university in qatar, aims to become the role model university in qatar and the arab region. it is also the only university in qatar that offers information retrieval courses.

  Write the method getlongestrun that takes as its parameter

Write the method getLongestRun that takes as its parameter an array of boolean values representing a series of coin flips. The method returns the starting index in the array of a run of maximum size

  Closed-loop congestion control

Congestion control refers to the techniques and mechanism that can either prevent congestion, before it happens, or remove congestion, after it has happened. In general, we can divide congestion control mechanism into two broad categories: Open lo..

  System capabilities for the company

Please include title page and reference page with references. This term paper needs to be in APA style. Include page numbers at the top right corner of each page.  The title page includes: title, name, date, course title, and professor's name. Also, ..

  Set operations and the logical con­nectives

A very deep connection (an isomorphism) exists between set operations and the logical con­nectives in the propositional logic.

  A clear function is required to erase the display screen

Create two Java classes: Phone.java and PhoneGUI.java. Phone.java will be the model of your cell phone. PhoneGUI will create a Phone object and call its methods when appropriate buttons on the screen are pressed.

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