Docsity

java Code - Distributed Objects - Past Exam, Exams of Computer Architecture and Organization

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Semester 1 Examinations 2012/13
Module Title: Distributed Objects
Module Code: SOFT8007
School: Science and Informatics
Programme Title: Bachelor of Science (Honours) in Software Development
Programme Code: KSDEV_8_Y4
External Examiner(s): Prof. Paul McKevitt
Internal Examiner(s): Mr. Denis Long
Instructions: Answer any three questions.
Duration: 2 Hours
Sitting: Winter 2012/13
Requirements for this examination: Answer any three questions.
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the
correct examination paper.
If in doubt please contact an Invigilator.
pf3

Partial preview of the text

Download java Code - Distributed Objects - Past Exam and more Exams Computer Architecture and Organization in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 1 Examinations 2012/

Module Title: Distributed Objects

Module Code: SOFT

School: Science and Informatics

Programme Title: Bachelor of Science (Honours) in Software Development

Programme Code: KSDEV_8_Y

External Examiner(s): Prof. Paul McKevitt Internal Examiner(s): Mr. Denis Long

Instructions: Answer any three questions.

Duration: 2 Hours

Sitting: Winter 2012/

Requirements for this examination: Answer any three questions.

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.

Q1.

A simple distributed RMI chat room is required, where clients can register/unregister (providing a call-back method). Later the clients can send (/broadcast) simple string messages to all others that are registered. All messages are sent to all registered clients, there is no validation as to the source of the message. You can use the observer pattern if you like.

a) Describe a solution that would be a suitable implementation for the chat room. You can use UML or other types of diagrams in your answer. (10 Marks) b) Write an RMI interfaces and the object implementations for the above system. Outline code is sufficient given the time available in exam. (13 Marks) b) Write a Server and Client for the above system. Outline code is sufficient given the time available in exam. (11 Marks)

Total for Q1 (34 Marks)

Q2.

a) Describe a typical producer/consumer relationship. (8 Marks)

b) Describe how this producer/consumer relationship can be implemented:  In a local environment  In a distributed environment. (8 Marks)

b) Give outline java code for the implementation in a distributed environment. (12 Marks)

d) Often one or other of the parties in this relationship operate at a different speed from the other. How would you suggest that this situation could be coped with? (5 Marks)

Total for Q2 (33 Marks)