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

  Use a loop to traverse each character in the input string

Write a program in the file freq.cpp which reads a string from the user and computes the frequency of each letter that appears in the string.

  Write a program that generates a random integer

Write a program that generates a random integer in the (inclusive) range [0-9] (i.e. the set {0,1,2,3,4,5,6,7,8,9}) and ask the user to guess what the number is .

  Why cannot technology totally solve problem of co-channel

Ultra Wide Band (UWB) appears like noise to other transmitters. Why cannot this technology totally solve the problem of co-channel interference for any type of wireless communication?

  Modify this pay calculator design

Modify this Pay Calculator design to include an input validation loop to ensure that the user provides a valid employee name (non empty); otherwise, the pay is not calculated

  Modify the program source code

Assuming that we can modify the program source code, how could we get a core dump of a process at a given moment in time, while letting the process continue execution?

  Use a seperate set interval or settimeout method

Use a seperate set interval or settimeout method to begin animating each image.

  Comprised of a two-dimensional grid of cells

The farm area that is operated on during the game is comprised of a two-dimensional grid of cells, each representing a plot of land. These cells are referenced by a coordinate pair; e.g. (2, 3). This land can be used to cultivate crops or graze li..

  Using a pld, develop an i/o port decoder

Using a PLD, develop an I/O port decoder that generates the following high-bank I/O strobes: 300DH, 300BH, 00B6H, and 00EEH.

  Introduction the area of cyber security

Introduction The area of Cyber security is rapidly evolving, with important research being conducted at all levels. The current and potential damage to societies, businesses, and individuals is a topic of growing importance to Governments across t..

  The identity of the third party

the identity of the third party?

  About home network

Develop an entire home network with a budget of $1,000.00. Your configuration must assume the purchase of associated hardware for access to both wireless and wired connections and a broadband connection.

  Develop requirements traceability matrix

The GlobalUBid.Com Case Study will be used to develop a requirements traceability matrix describing and following the life of requirements in both the forward and backward direction.

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