Question: Question: Really need help in this Questions 1. First build main-race.c. Examine the code so you can see the (hopefully obvious) data race in the

Question:

Really need help in this

Questions

1. First build main-race.c. Examine the code so you can see the (hopefully obvious) data race in the code. Now run helgrind (by typing valgrind --tool=helgrind main-race) to see how it reports the race. Does it point to the right lines of code? What other information does it give to you?

2. What happens when you remove one of the offending lines of code? Now add a lock around one of the updates to the shared variable, and then around both. What does helgrind report in each of these cases?

3. Now let's look at main-deadlock.c. Examine the code. This code has a problem known as deadlock (which we discuss in much more d

4. Now run helgrind on this code. What does helgrind report?

5. Now run helgrind on main-deadlock-global.c. Examine the code; does it have the same problem that main-deadlock.c has? Should helgrind be reporting the same error? What does this tell you about tools like helgrind?

6. Let's next look at main-signal.c. This code uses a variable (done) to signal that the child is done and that the parent can now continue. Why is this code inefficient? (what does the parent end up spending its time doing, particularly if the child thread takes a long time to complete?)

7. Now run helgrind on this program. What does it report? Is the code correct?

8. Now look at a slightly modified version of the code, which is found in main-signal-cv.c. This version uses a condition variable to do the signaling (and associated lock). Why is this code preferred to the previous version? Is it correctness, or performance, or both?

9. Once again run helgrind on main-signal-cv. Does it report any errors?

Marcel Ltd manufactures a product which has the following standard costs:

Selling price 262

Direct materials (2 kg) 104

Direct labour (3 hours) 61

Fixed overheads 9 174

Standard profit 88

In July the company budgets production of 1,400 units. The actual production is

1,700 units and the total sales for the month amounts to 579,020. The company

sells its entire production and therefore incurs no costs in holding stock.

The actual costs for July were as follows:

Direct materials Usage is 2.16 kg per unit 264,384

Direct labour Total hours were 5,440 136,000

Fixed overheads 18,000

You are required to calculate the following variances and reconcile them with the

difference between the actual and budgeted results.

(i) Material usage and price variances.

(ii) Labour rate and efficiency variances.

(iii) Fixed overhead variance.

(iv) Sales price and volume variances.

Question: Really need help in this Questions 1.Question: Really need help in this Questions 1.Question: Really need help in this Questions 1.
1. To bring uniformity in accounting information, accountants all over the world follow certain common practices known as concepts, conventions and postulates while recording financial transactions. These practices come under preview of accounting theory framework. Discuss the following in Accounting Practice with examples; a. Generally Accepted Accounting Principles (GAAP) b. Accounting Standards (AS) C. Accounting Systems 2. Preparation of final accounts is governed by different Acts, Laws, Standards and Principles like Income tax law, Company Act, Partnership Act, Accounting Standards (AS), Generally Accepted Accounting Principles (GAAP) etc., used for valuation of financial transactions/events to standardize accounting information, which in turn depends upon type of organization concerned. The final accounts are prepared based on the nature of operations of these types of businesses. Differentiate between the following types of final accounts; a. Trial Balance and the Balance sheet b. Manufacturing Account and Trading Account c. Trading Account and Profit and Loss Account d. Income statement and Balance Sheet2. Preparation of final accounts is governed by different Acts, Laws, Standards and Principles like Income tax law, Company Act, Partnership Act, Accounting Standards (AS), Generally Accepted Accounting Principles (GAAP) etc., used for valuation of financial transactions/events to standardize accounting information, which in turn depends upon type of organization concerned. The final accounts are prepared based on the nature of operations of these types of businesses. Differentiate between the following types of final accounts; a. Trial Balance and the Balance sheet b. Manufacturing Account and Trading Account c. Trading Account and Profit and Loss Account d. Income statement and Balance SheetQuestion 3 The following represents the Final Accounts and Balance Sheet of Joe Blunt Led. For the financial year ending December 31, 2005: Trading & Profit & Loss Accounts for period ending December 31, 2005 Details S'000 Net sales 206,000 Less: Cost of sales (61,800) Gross profit 144,200 Less: Selling and administration expenses (10,500) Profit before interest and taxation 133, 700 Less: Interest (30,700) Profit before taxation 103,000 Less: Taxation @ 30% (30.900) Net profit after tax 72.100 Balance Sheet as at December 31, 2005 Details/ Accounts $'000 $.000 5.000 Fixed Assets Cost Accumulated Depreciation Net Book Value Buildings & Equipment 55.000 24000 31.000 Motor Vehicles 30.000 12000 18.000 Computers 60.000 25:000 35,000 145.000 61,000 81,000 Current Assets Stock 2,000 Accounts Receivable 13,000 Cash 45:000 144-009 Financed by: Capital & reserves Ordinary/equity shares

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!