We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Assignment No. 02 CS604 –Operating System Total Marks: 20 Due Date: 30-06-2016

Assignment

 

Question:

 

Following are processes with their ticket number

 

Process

Number

P0

3

P1

2

P2

0

P3

8

P4

5

P5

4

P6

7

P7

0

P8

9

 

Implement Bakery Algorithm on above processes in the form of table and show the execution order in critical section.

 

 

 

 

 

 

 

 

 

 

Sample Solution:

 

j

P0

P1

P3

P4

P5

P6

P8

0

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

8

 

 

 

 

 

 

 

 

 

Order: P3,P4,P7…..

 

 

 

 

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 7494

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

 sis yh kaisy order bnta hai 

Hmain to waisa krna ho ga jo btyia  gyia hai assigmnt main 

Order: P3,P4,P7…..

wo to just aisy he btaya hua ha ap ny order khud sy likhna ha table bna kr or order ka mtlb ye ha k konsa process phly critical section men jay ga is men hr process apna ticket no baki sb process sy check krta ha jis ka sb sy small number hoga wo phly critical section men jay ga or us ki bar sb process spin krty hn . ye lec 20 or 21 agr ap sun len ya handouts read kr len to apko easily smjh aa jayga . ticket no ki base pr order hoga processes ka

hard copy men page 104 pr ha iski example bilkul same ha bs is men processes zyada hn us example men km hn

table to bn gyia hai Bs order main likhna hai ab 

handouts mei to is terha order me table nahi he. is tarha bana lazmi he kia?

+420(BSSE 4th )  table mein order mention nahi karna( zarorat nahi) . But jo b order hai. jaisy handouts mei hai us k mutabik label kiya howa. orr lil.. bit explanation be wo sb karni? ya just table bna kr post kr dain?  

lil Bit 

Every one is making same table. (me too)

Is there any copy right issue?? I already have Zero marks in two assignments (due to matching with some one).

Some one please ask from Instructor.

is table is correct

tell me order

p3,p4,p7

RSS

Latest Activity

20 October posted a status
"میرے جھوٹ کو کھولو بھی اور تولو بھی تم لیکن اپنے سچ کو بھی میزان میں رکھنا"
2 seconds ago
20 October posted a status
"اپنی ہی آواز کو بے شک کان میں رکھنا لیکن شہر کی خاموشی بھی دھیان میں رکھنا"
19 seconds ago
20 October posted discussions
59 seconds ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion Lets Share yOur desktOp wAllpAper.....  (•ิ‿•ิ)
1 minute ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion Jin sey Mohabbat Ho.....
2 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked +¢αяєℓєѕѕ gιяℓ's discussion Jin sey Mohabbat Ho.....
2 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion Lets Share yOur desktOp wAllpAper.....  (•ิ‿•ิ)
2 minutes ago
+++STUDENT+++ replied to BIA's discussion QURAN. 3:135
4 minutes ago
+ ՏhehαrZααD + liked BIA's discussion Quran 15:49
4 minutes ago
+++STUDENT+++ liked BIA's discussion QURAN. 3:135
4 minutes ago
20 October posted a status
"یہ اہل درد بھی کس کی دہائی دیتے ہیں وہ چپ بھی ہو تو زمانہ ہے ہم نوا اس کا"
5 minutes ago
20 October posted a status
"چلو یہ سیل بلا خیز ہی بنے اپنا سفینہ اس کا خدا اس کا ناخدا اس کا"
5 minutes ago
20 October posted a status
"وہ برق رو تھا مگر وہ گیا کہاں جانے اب انتظار کریں گے شکستہ پا اس کا"
5 minutes ago
20 October posted a status
"وہ اپنے زعم میں تھا بے خبر رہا مجھ سے اسے گماں بھی نہیں میں نہیں رہا اس کا"
5 minutes ago
20 October posted a status
"مزاج ہم سے زیادہ جدا نہ تھا اس کا جب اپنے طور یہی تھے تو کیا گلہ اس کا"
5 minutes ago
20 October posted a status
"ہمیں نے ترک تعلق میں پہل کی کہ سلمان خان وہ چاہتا تھا مگر حوصلہ نہ تھا اس کا"
7 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ replied to +¢αяєℓєѕѕ gιяℓ's discussion Boys Be Like xD
8 minutes ago
+ ! ❤SΕNSΙТΙVΕ(∂ΕSΕЯТ ΡЯΙNCΕSS)❤ liked +¢αяєℓєѕѕ gιяℓ's discussion Boys Be Like xD
8 minutes ago
+ M.Tariq Malik left a comment for Sami
10 minutes ago
+++STUDENT+++ liked BIA's discussion if u r grateful, I will give u more.
12 minutes ago

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service