

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Semester 1 Examinations 2012/
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.
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)
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)