Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider three concurrent processes P1, P2 an... Start Learning for Free
Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.
The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.
    Correct answer is '80'. Can you explain this answer?
    Most Upvoted Answer
    Consider three concurrent processes P1, P2 and P3 as shown below, whic...
    Maximum value (Y):
    • Process P1 reads the initial value 100 during execution P1 will update the value of D to (100 + 20 = 120) and writes it to memory.
    • P2 and P3 read the value 120 from the memory.
    • P2 will get executed before P1 and write the value (120 - 50 = 70) to memory. Since P3 is holding D = 120 after its execution D will be equal to (120 + 10 = 130) ∴ Y = 130
    Minimum value (X):
    • P1, P2 and P3 read the value 100 from the memory
    • P1 will execute first, after its execution it will update (D = 100 + 20 = 120)
    • After P1, P3 will execute and it will update the value to (D = 100 + 10 = 110)
    • Finally, P2 will be execute and D will be equal to 100 - 50 = 50 ∴ X = 50
    • Y - X = 130 - 50 = 80
    Free Test
    Community Answer
    Consider three concurrent processes P1, P2 and P3 as shown below, whic...
    Maximum value (Y):
    • Process P1 reads the initial value 100 during execution P1 will update the value of D to (100 + 20 = 120) and writes it to memory.
    • P2 and P3 read the value 120 from the memory.
    • P2 will get executed before P1 and write the value (120 - 50 = 70) to memory. Since P3 is holding D = 120 after its execution D will be equal to (120 + 10 = 130) ∴ Y = 130
    Minimum value (X):
    • P1, P2 and P3 read the value 100 from the memory
    • P1 will execute first, after its execution it will update (D = 100 + 20 = 120)
    • After P1, P3 will execute and it will update the value to (D = 100 + 10 = 110)
    • Finally, P2 will be execute and D will be equal to 100 - 50 = 50 ∴ X = 50
    • Y - X = 130 - 50 = 80
    Explore Courses for Computer Science Engineering (CSE) exam

    Similar Computer Science Engineering (CSE) Doubts

    Top Courses for Computer Science Engineering (CSE)

    Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer?
    Question Description
    Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer?.
    Solutions for Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
    Here you can find the meaning of Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer?, a detailed solution for Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? has been provided alongside types of Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider three concurrent processes P1, P2 and P3 as shown below, which access a shared variable D that has been initialized to 100.The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.Correct answer is '80'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
    Explore Courses for Computer Science Engineering (CSE) exam

    Top Courses for Computer Science Engineering (CSE)

    Explore Courses
    Signup for Free!
    Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
    10M+ students study on EduRev