View the step-by-step solution to:

Introduction to Operating Systems - Spring 2009/2010 Home Assignment No. 2 Policies: No teamwork. Submission: as one PDF file that contains student's...

hi this is my homework
1 Introduction to Operating Systems – Spring 2009/2010 Home Assignment No. 2 Policies: No teamwork. Submission: as one PDF file that contains student’s name and number, delivered to the e-learning site, the deadline is 20 th May 2010; no late or irregular work would be accepted. Grading: 10 marks. Any cheating type will simply result in ZERO grade for all assignments and quizzes; (i.e. you will directly lose 20 marks). ================================================================= 1) [Weight: 40%] Consider the following program segments for two different processes (P1, P2) executing concurrently , where a and b are not shared variables, but x starts at zero and is a shared variable. Case 1 Processor #1 Processor #2 for (a = 1; a <= 3; a++) for (b = 1; b <= 3; b++) x = x + 1; x = x + 1; Case 2 Processor #1 Processor #2 x = 0; x = 0; for (a = 1; a <= 3; a++) for (b = 1; b <= 3; b++) x = x + 1; x = x + 1; a. If the processes P1 and P2 execute only once at any speed, what are the possible resulting values of x in Case 1 and Case 2? Explain your answers . b. Suggest some modifications on the original code to eliminate the problem. (Answer part (b) only if you have identified data inconsistency / critical section problems in part (a))
Background image of page 1
2 2) [Weight: 10%] State how you would design and implement a mechanism to allow the operating system to detect which, if any, of the processes are starving. 3) [Weight: 50%] Paper Review Review journal articles for any of the topics related to this course. You are required to write a report after this review, and apply the following guidelines regarding this written requirement: 1. Two pages maximum, typed, 1 inch margins and TIMES 12 points font. 2. Correct grammar, referencing, style, and appearance. 3. Accurate content, but not copied as is from its source, except some slight quotation. 4. The first few paragraphs should present the major ideas of the article. 5. The last paragraph should present your reflections about the article. 6. You should not review an article older than 5 years. 7. Use your own words and illustrations. 8. When you quote some text this should be explicitly noted and the name of whom you quote should be given. 9. If you refer to other sources these sources should be correctly cited. 10. Note that it is often a violation of copy right laws to include an image, an illustrations or a table in your paper that was produced by someone else. 11. If you use material from someone else make sure that you have the right to use it and of course cite the source properly. 12. If you take ideas from other sources or if you state things that are described or proved by others then a reference to the source should be given. Good luck (although you do not need it ) Eng. Hani Salah & Mr. Mohammad Y. AlTamimi
Background image of page 2

Top Answer

Hello, We can only answer your free 3 questions per day one at a time. Please re-submit an individual question here:... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online