حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام)

حلول واجبات الجامعة العربية المفتوحة لجميع تخصصات الجامعة ولجميع فروع الجامعة حلول واجبات – مشاريع تخرج – ملخصات هامة Mobile: 00966542495275 حلول واجبات الجامعة ا
 
الرئيسيةاليوميةس .و .جبحـثالأعضاءالمجموعاتالتسجيلدخول

شاطر | 
 

 Supplementary material for M362: Developing Concurrent Distributed Systems Tutor-Marked Assignment (Spring 2015) Cut-Off Date: 29/04/2015 Total Marks: 40 Contents Warnings and Declaration………………………………………………………………………………..1 Question 1 (12 marks)…………………………

اذهب الى الأسفل 
كاتب الموضوعرسالة
whatsapp::00966542495275
Admin


عدد المساهمات : 1456
تاريخ التسجيل : 07/10/2014

مُساهمةموضوع: Supplementary material for M362: Developing Concurrent Distributed Systems Tutor-Marked Assignment (Spring 2015) Cut-Off Date: 29/04/2015 Total Marks: 40 Contents Warnings and Declaration………………………………………………………………………………..1 Question 1 (12 marks)…………………………   الإثنين مارس 30, 2015 3:06 am

Supplementary material for
M362: Developing Concurrent Distributed Systems


Tutor-Marked Assignment (Spring 2015)
Cut-Off Date: 29/04/2015
Total Marks: 40

Contents
Warnings and Declaration………………………………………………………………………………..1
Question 1 (12 marks)………………………….…………………………………………………………2
Question 2 (16 marks)………………………………………………………………………………….…2
Question 3 (6 marks)……………………………………………………..…………………………….…3
Question 4 (6 marks)…………………………………………………………..……………………….…3
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.
Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.
Name of Student:………………………………..
Signature:…………………………………………...
Date:…………………………………………………



Question 1: (12 marks)

Multicore processors became the common processing units in all computing devices. Multicore processor is composed by several cores on one single chip. It was mainly designed to support the huge computing services and deliver high-performance machines. However, such developments in the hardware manufacturing (multi-core processors with hundreds of cores in the near future) widen the gap with the software development in the last decade.
In the light of the above briefing on multicore processors, you are asked to answer the following questions:
1. Identify the gap between the software development and hardware development? (4 marks)

2. Some users claim that some of their applications are running on multi-core processors with the same performance as on single-core processors. Explain this claim? (4 marks)

3. Discuss the performance implications of running a multithreaded code over multi-core processors and multi-processors? (4 marks)

Note: Student should provide at least one reference for each answer.


Question 2: (16 marks)

Implement a Java ThreadPool class for Runnables (i.e., an interface with a run() method) that uses an ArrayList for an internal task queue. The maximum number of threads is fixed and is passed into the constructor. The constructor should create all threads in advance. In term of task scheduling, you are asked to use first-in, first-out technique.

The class has the following set of methods:
• addTask(Runnable r): adds a task to the queue.
• stop(): marks the thread pool as permanently stopped and blocks the caller until all existing tasks have completed.

After a thread pool has been stopped, thread pool threads should exit when no tasks remain.

Use the following template and fill in the missing methods:
public class ThreadPool {
private ArrayList queue = new ArrayList();
private boolean active = true;
private final int MAX_THREADS;
public ThreadPool(int max) {
MAX_THREADS = max;
for (int i = 0; i < MAX_THREADS; i++) {
new Thread(new Runnable() {
public void run() {
threadmain();
}
}).start();
}
}
public void addTask(Runnable r) {
// TODO: IMPLEMENT THIS!
}
public void stop() {
// TODO: IMPLEMENT THIS!
}
private void threadmain() {
// TODO: IMPLEMENT THIS!
}
}



Question 3: (6 marks)
Explain with examples the main function(s) of the following? (3 marks for each one)
a) Http:
b) Port Numbers in TCP/IP:

Question 4: (6 marks)
Distinguish between concurrent computer systems and sequential computer systems?











Good-Luck

_________________
لتحميل ملف حل الواجب الحل النموذجي للواجب.doc يجب عليك  التسجيـــل بالمنتدى لتتمكن من تحميل الملف


حل واجب - خدمات مجانية – حلول واجبات الجامعة الجامعة العربية المفتوحة- كل الجامعات - حل واجب - حل واجب TMA- حل واجب TMA01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
Mobile: 00966542495275  or
WhatsApp:00966542495275

smsm.hamdy66@yahoo.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
السعودية-الكويت-لبنان-مصر-البحرين-الأردن-عمان-الرياض-الدمام-جدة-حائل-الاحساء-المدينة المنورة
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
قسم خاص لواجبات التربية لجميع التخصصات ولجميع المستويات
http://tmas.123.st
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://learn.123.st
 
Supplementary material for M362: Developing Concurrent Distributed Systems Tutor-Marked Assignment (Spring 2015) Cut-Off Date: 29/04/2015 Total Marks: 40 Contents Warnings and Declaration………………………………………………………………………………..1 Question 1 (12 marks)…………………………
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» 2015 عام انقراض القنوات الارضية
» تشكيل لجنة لإعداد ملف لاستضافة المغرب لأمم إفريقيا عام 2015 أو 2017
» شفرات ميدل اوف اونر
» كيفية تكوين سؤال فى اللغه الانجليزيه
» الخطوات والبنود التي تتم بها مراجعة وتدقيق الجداول الزمنية

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام) :: الحلول النموذجية لعام 2015-
انتقل الى: