Two processors P1 and P2 receive data X and Y respectively from two satellites, square the data, then send the result to a third processor P3 to calculate their sum. Each of P1 and P2 has only an input buffer for one data item while P3 has a buffer for two data items. In the diagram below, the circles represent processors and the boxes represent buffers. Write a correct concurrent program using binary semaphores to synchronize the operations of the three processors
طلب مساعدة
مغلق
بسم الله الرحمن الرحيم
السلام عليكم و رحمة الله و بركاته ...
أختي
إضغطي هنــــــــا لمعرفة قوانين الكتابة
بودي لو اساعدك لكن لو تعرضين برنامجك و محاولاتك سوف يسهل علينا ذلك
أعتذر مجدد لك ..
الـدهـر يـومان ذا أمـن وذا خــطر******* والعيش عيشان ذا صفو وذا كـدر
أمـا تـرى الـبحر تعلو فوقه جـيف****** وتـسـتـقـربإقصى قــاعـه الــــــدرر
وفــي الـسـماء نـجوم لاعـداد لـها ****** ولـيس يـكسف إلا الشمس والقمر
هذا الموضوع مغلق.