Your SlideShare is downloading. ×
0
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Sjf
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Sjf

11,283

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
11,283
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
112
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SJF
  • 2.
    • First:
    • nonpreemtive
  • 3.
    • Four processes arrive on the same time
  • 4. 6 sec
  • 5. 6 sec 4 sec
  • 6. 6 sec 4 sec 8 sec
  • 7. 6 sec 4 sec 8 sec 3 sec
  • 8. 6 sec 4 sec 8 sec 3 sec
  • 9. 6 sec 4 sec 8 sec 3 sec
  • 10. 6 sec 4 sec 8 sec 3 sec
  • 11. 6 sec 4 sec 8 sec
  • 12. 6 sec 8 sec
  • 13. 6 sec 8 sec
  • 14. 8 sec
  • 15. 8 sec
  • 16.
    • Second:
    • preemptive
  • 17.  
  • 18. At time 0: P1 start
  • 19. At time 2: P2 arrive P2 needs 4 sec P1 still needs (7-2)= 5 sec
  • 20. At time 2: P2 needs 4 sec P1 still needs (7-2)= 5 sec
  • 21. At time 2: 4 sec < 5 sec
  • 22. At time 2: So, Begin P2
  • 23. At time 4: P3 arrive P3 needs 1 sec P2 still needs (4-2)= 2 sec
  • 24. At time 4: P3 arrive P3 needs 1 sec P2 still needs (4-2)= 2 sec
  • 25. At time 4: 1sec < 2 sec
  • 26. At time 4: So, Begin P3
  • 27. At time 5: P4 arrive P4 needs 4 sec P2 still needs (4-2)= 2 sec P1 still needs= 5 sec
  • 28. At time 5: P4 arrive P4 needs 4 sec P2 still needs (4-2)= 2 sec P1 still needs= 5 sec
  • 29. At time 5: 2 sec < 4sec< 5sec
  • 30. At time 5: So, Return to P2
  • 31. At time 7: P2 finish P1 stitt needs = 5 sec P4 needs = 4 sec
  • 32. At time 7: P2 finish P1 stitt needs = 5 sec P4 needs = 4 sec
  • 33. At time 7: 4sec< 5sec
  • 34. At time 7: So, begin to P4
  • 35. At time 11: P4 finish no more process
  • 36. At time 11: So, return to P1
  • 37.
    • وكمثال ملموس لهذه الطريقة :
    • لو كنتِ في متجر .. وأردتِ شراء كيس من الخبز فقط .. ثم ذهبتِ إلى المحاسب , ولكن لسوء حظك !! وجدتِ أمامك شخصاً قد ملأ سلة كاااملة من المشتريات  !!
    • ولكن عندما يرى المحاسب انك ستحاسبن على الخبز فقط .. قد يستأذن من صاحب السلة .. فيحاسبك ثم يعود إليه ..
  • 38.
    • كُتب بواسطة :
    • صفا البلاع

×