Preview

Mcse 011(Mca 5)Ignou

Good Essays
Open Document
Open Document
1946 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Mcse 011(Mca 5)Ignou
Question 1: Determine the dependency relations among the following instructions: I1: a = b+c; I2:b=a+d I3: e =a/f;
A.J.Bernstein has elaborated the work of data dependency and derived some conditions based on which we can decide the parallelism of instructions or processes. Bernstein conditions are based on the following two sets of variables: i) The Read set or input set RI that consists of memory locations read by the statement of instruction I1. ii) The Write set or output set WI that consists of memory locations written into by instruction I1. The sets RI and WI are not disjoint as the same locations are used for reading and writing by SI. The following are Bernstein Parallelism conditions which are used to determine whether statements are parallel or not: 1) Locations in R1 from which S1 reads and the locations W2 onto which S2 writes must be mutually exclusive. That means S1 does not read from any memory location onto which S2 writes. It can be denoted as: R1∩W2= 2) Similarly, locations in R2 from which S2 reads and the locations W1 onto which S1 writes must be mutually exclusive. That means S2 does not read from any memory location onto which S1 writes. It can be denoted as: R2∩W1= 3) The memory locations W1 and W2 onto which S1 and S2 write, should not be read by S1 and S2. That means R1 and R2 should be independent of W1 and W2. It can be denoted as : W1∩W2= To show the operation of Bernstein’s conditions, consider the following instructions of sequential program:

I1:a = b+c; I2:b =a+d; I3:e = a/f;
Now, the read set and write set of I1, I2 and I3 are as follows: R1 = {b, c} W1 = {a} R2 = {a, d} W2 = {b} R3 = {a, f} W3 = {e} Now let us find out whether I1 and I2 are parallel or not: R1∩W2= R2∩W1= W1∩W2=

For Q ueries : dbkr.bnrj@ gmail.com facebook.c om/dbkrbnrj

That means I1 and I2 are independent of each other: Similarly for I1 || I3 , R1 ∩W3 = R3 ∩W1 ≠ W1 ∩W3 = Hence I1 and I3 are not independent of each other. For I2 || I3 , R2 ∩W3 = R3 ∩W2 =

You May Also Find These Documents Helpful

  • Good Essays

    SAMPLE EXAM 3 2010

    • 3549 Words
    • 16 Pages

    1. Which of the following statements about the payment of defense costs by the PAP is (are) true?…

    • 3549 Words
    • 16 Pages
    Good Essays
  • Good Essays

    MGMT 520 FNAL EXAM

    • 1137 Words
    • 4 Pages

    1. List any bases Robins & Robins could sue Casings, Inc., under contract theory ONLY for the damages caused by the explosives in their drugs, over and above the cost of the capsule shells. (short answer question)…

    • 1137 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    PT1420 Chapter 3 Review

    • 1062 Words
    • 8 Pages

    3. Write assignment statements that perform the following operations with the variables a, b, and c.…

    • 1062 Words
    • 8 Pages
    Satisfactory Essays
  • Satisfactory Essays

    4.) Write assignment statements that perform the following operations with the variables a, b, and c:…

    • 453 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    EXAM 5 AIS

    • 1909 Words
    • 18 Pages

    Which of the following is conducted as a follow up to a system's recent implementation?…

    • 1909 Words
    • 18 Pages
    Satisfactory Essays
  • Good Essays

    Mm522 Final Exam

    • 1004 Words
    • 5 Pages

    1. (TCO B) What are the advantages of qualitative measurements when doing marketing research? What are the disadvantages? Be sure to answer both questions. (Points : 25)…

    • 1004 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Aqa Unit 3 Exam

    • 1360 Words
    • 6 Pages

    Advice You are advised to spend about 45 minutes on each of Sections A and B and about 60 minutes on Section C.…

    • 1360 Words
    • 6 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Mus 250 Exam1

    • 4190 Words
    • 17 Pages

    | Today people hear so much music that they tend not to listen carefully to it.…

    • 4190 Words
    • 17 Pages
    Satisfactory Essays
  • Satisfactory Essays

    unit 3

    • 313 Words
    • 2 Pages

    3. Write assignment statements that perform the following operations with the variables a, b, and c.…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Mm207 Unit 4 Mid Term

    • 619 Words
    • 3 Pages

    A recent report on the weekly news presented the findings of a study on the effectiveness of Onglyza, along with diet and exercise, for treating diabetes. my answer: The implied population is all the people who are diabetics. Diabetics were used to test the effectiveness of Onglyza, diet and exercise.…

    • 619 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    MGMT 520 MIDTERM EXAM

    • 1524 Words
    • 5 Pages

    TCO B. Infuriated when Harry Reid is re-elected during the 2010 fall election, the Republicans in Congress decide to take matters into their own hands. In 2011, the House of Representatives passes a new "Freedom isn't Free Act" that requires that anyone who wants to vote in the 2012 presidential election must prove that they paid at least $200 in federal income tax in the past year, including people aged 18 (who typically are deducted on their parents' returns and do not pay income tax). Anyone who received the "earned income credit" is barred from voting unless they return the payment from the government. Proof of payment of the tax can be made by showing a copy of the prior year's W2, a copy of the prior year's tax return, or a signed statement from the IRS stating that the payment of more than $200 in federal income tax has been made. Citizens who do not pay taxes can still vote if they donate $200.00 to the federal government as voluntary income tax and get a statement from the IRS that they have done so. The law sunsets on December 31, 2012. List two bases under which someone impacted by this law could argue to have the law overturned.…

    • 1524 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    COM 100 Exam 1

    • 1961 Words
    • 9 Pages

    You will have 60 minutes to complete the exam from the time it is distributed. You will have ample time to read each test item carefully and respond to each test item thoughtfully. Test items are not intended to be tricky, but rather to assess the depth of your understanding.…

    • 1961 Words
    • 9 Pages
    Powerful Essays
  • Powerful Essays

    3. Write assignment statements that perform the following operations with the variables a, b, and c.…

    • 748 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    MGT 320 EXAM1

    • 1536 Words
    • 7 Pages

    Know the common perceptual errors listed on Table 4-1 (p. 88), such as contract effects and halo error.…

    • 1536 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    exam 1

    • 1959 Words
    • 15 Pages

    History suggests that the overwhelming majority of human beings have had to choose between either tyranny or anarchy…

    • 1959 Words
    • 15 Pages
    Satisfactory Essays