MECS Exercises4 - : * (bounded buffer) (consumer)...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 ﻲﻟﺎﻌﺗ ﻪﻤﺴﺑ ناﺮﻳا ﺖﻌﻨﺻ و ﻢﻠﻋ هﺎﮕﺸﻧاد ﺮﺗﻮﻴﭙﻣﺎﻛ ﻲﺳﺪﻨﻬﻣ هﺪﻜﺸﻧاد يﺮﺳ ﻦﻳﺮﻤﺗ مرﺎﻬﭼ لﺪﻣ سرد ﻢﺘﺴﻴﺳ ﻲﺑﺎﻳزرا و يزﺎﺳ يﺎﻫ يﺮﺗﻮﻴﭙﻣﺎﻛ * * سرﺪﻣ : ﻲﻬﻠﻟاﺪﺒﻋ ﻲﻤﮔزا 1 ( هﺪﻨﻨﻛ ﺪﻴﻟﻮﺗ ود ﺎﺑ ﻲﻤﺘﺴﻴﺳ (producer) هﺪﻨﻨﻛ فﺮﺼﻣ ود و (consumer) دوﺪﺤﻣ ﺮﻓﺎﺑ ود ، (bounded buffer) لﺎﻧﺎﻛ ﻚﻳ و ﻲﻃﺎﺒﺗرا كﺮﺘﺸﻣ فﺮﺼﻣ ﻪﺑ هﺪﻨﻨﻛﺪﻴﻟﻮﺗ زا مﺎﻐﻴﭘ لﺎﻘﺘﻧا ياﺮﺑ ﺪﻳﺮﻴﮕﺑ ﺮﻈﻧرد ار هﺪﻨﻨﻛ . ﻊﺒﻨﻣ ﻚﻳ لﺎﻧﺎﻛ ﻦﻳا (resource) ﻪﺑ ﺪﻳﺎﺑ ﻪﻛ ﺖﺳا ﻪﺑود ترﻮﺻ ود يرﺎﺼﺤﻧا (mutual exclusive) دﺮﻴﮕﺑ راﺮﻗ نﺎﮔﺪﻨﻨﻛﺪﻴﻟﻮﺗ رﺎﻴﺘﺧا رد . هﺪﻨﻨﻛﺪﻴﻟﻮﺗ i - فﺮﺼﻣ ياﺮﺑ ار ﺎﻬﻣﺎﻐﻴﭘ ما هﺪﻨﻨﻛ i - ﻲﻣ ما دزﺎﺳ . ﻴﭘ ﺎـﻬﻣﺎﻐ ﺮﻓﺎﺑ رد i - ياراد ﻪﻛ ما 5 ﻲﻣ راﺮﻗ لﺎﺳرا ﺖﻬﺟ ،ﺖﺳا نﺎﻜﻣ ﺪﻧﺮﻴﮔ . ﺎﻬﻣﺎﻐﻴﭘ لﺎﻘﺘﻧا ﺖﻳﻮﻟوا ﻪﻛ ﺪﻴﻨﻛ ضﺮﻓ ﻖﻳﺮﻃ زا لوا هﺪـﻨﻨﻛﺪﻴﻟﻮﺗ ﺎـﺑ لﺎﻧﺎﻛ ،ﺪـﺷﺎﺑ لﺎـﺳرا لﺎـﺣ رد مود هﺪـﻨﻨﻛﺪﻴﻟﻮﺗ ﺮـﮔا و دﻮـﺑ ﺪـﻫاﻮﺧ نآ ﺎﺑ لﺎﺳرا ﺖﻳﻮﻟوا ﺪﺷﺎﺑ لﺎﺳرا ياﺮﺑ ﻲﻣﺎﻐﻴﭘ لوا ﺮﻓﺎﺑ رد ﻪﻛ ﻲﺘﻗو ﺎﺗ و ﺖﺳا ﻴﻟﻮﺗ ﻲﻤﻧ لوا هﺪﻨﻨﻛﺪ ﺪﻨﻛ ﻊﻄﻗ ار وا رﺎﻛ ﺪﻧاﻮﺗ ) ندﻮﺑ يرﺎﺼﺤﻧا ( : ﻒﻟا ( ﻪﻜﺒﺷ فاﺮﮔ ﺪﻴﻨﻛ ﻲﻓﺮﻌﻣ اﺮﻧآ ءاﺰﺟا ﻲﻣﺎﻤﺗ و هدﻮﻤﻧ ﻢﺳر ار ﻢﺘﺴﻴﺳ ﻦﻳا يﺮﺘﭘ يﺎﻫ . ب ( ﻪﻜﺒﺷ رﺎﺘﺧﺎﺳ ﺎﺑ ار قﻮﻓ لﺪﻣ ﺪﻴﻳﺎﻤﻧ ﻪﺋارا ﺰﻴﻧ يﺮﺘﭘ يﺎﻫ . ب ( ﻪﻧﺎﺸﻧ ﺎﻳ ﺖﻟﺎﺣ ﺪﻴﻨﻛ ﻒﻳﺮﻌﺗ ار لﺪﻣ ﻦﻳا يراﺬﮔ . ج ( ﻦﻳا ﺖﻟﺎﺣ يﺎﻀﻓ ﺪﻳروآ ﺖﺳﺪﺑ ار لﺪﻣ . ج ( ﻲﻣ ار ﻲﻳﺎﻬﻠﻴﻠﺤﺗ عﻮﻧ ﻪﭼ نآ ﺖﻟﺎﺣ يﺎﻀﻓ و هﺪﺷ ﻪﺘﺧﺎﺳ لﺪﻣ زا هدﺎﻔﺘﺳا ﺎﺑ ؟داد مﺎﺠﻧا ﻢﺘﺴﻴﺳ درﻮﻣ رد ناﻮﺗ 2 ( ﺎﻫرﺎﻛ (jobs) دورو ﻦﻴﺑ نﺎﻣز ﻦﻴﮕﻧﺎﻴﻣ ﺎﺑ نﺎﺳاﻮﭘ ﺪﻨﻳاﺮﻓ ﻖﺒﻃ a ﻲﻣ يﺮﺗﻮﻴﭙﻣﺎﻛ ﻢﺘﺴﻴﺳ ﻚﻳ دراو ﺮﮕـﺷزادﺮﭘ ﻚﻳ ﻂﺳﻮﺗ و ﺪﻧﻮﺷ (CPU) ﻲﻳﺎﻤﻧ ﺲﻳوﺮﺳ نﺎﻣز ﺎﺑ خﺮﻧ ﺎﺑ b ﻲﻣ شزادﺮﭘ ﺪﻧﻮﺷ . لﺎﻤﺘﺣا ﺎﺑ شزادﺮﭘ زا ﺲﭘ
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/08/2010 for the course COMPUTER E 409232 taught by Professor Mohammadabdolahiazgomiph.d during the Spring '10 term at Islamic University.

Page1 / 2

MECS Exercises4 - : * (bounded buffer) (consumer)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online