You are on page 1of 4

QUESTION 1

The following nest of procedure calls are given, whereby, a client program calls procedure A (a
local procedure), and then call procedure B (a remote procedure). Procedure B calls procedure
C (a remote procedure), which then calls procedure D. At the end of data search, procedure D
returns to procedure C, and procedure C returns to procedure B, and finally back to the client
program.

CLIENT Program Procedure A


………… ………...
Call procedure A Search data
Continue …………
………… Return
…………
…………
Call procedure B
Continues Procedure B
………… ………...
End Search data
…………
Call Procedure C
Continue
…………
Return

Procedure C
………...
Procedure D Search data
……… …………
Search data Call Procedure D
……… Continue
Return ………
Return

Describe ONE application scenario where the above nest of procedure calls (local and remote)
can happen – e.g. Spare Parts Inventory Control System. Your tutor can advice you on the
choice of applications. Other examples can be banking applications, student applications and
etc. You need also explain where the servers, the procedures and the databases are located
along the networked system.

( 20 Marks)
QUESTION 2

a) Write a pseudo-code for each program or procedure pertaining to the Spare Parts
Inventory Control System, or your chosen application described in question 1 (above).
Alternatively, you can choose to write in C, Pascal, or Basic programming language, but you
don’t need to compile because only the logic will be checked.

(20 marks)

b) Write ONE essay on the topic, “Inter-Process Communication”. Your essay must cover
synchronous and asynchronous communication, using about 400 words. You can use
diagrams for better illustration. You are advised to make references correctly.

(20 marks)
Malay Version

Question 1

Sarang panggilan prosidur berikut diberikan, di mana aturcara pelanggan memanggil prosidur A
(prosidur setempat), dan kemudiannya memanggil prosidur B (prosidur jauh). Prosidur B
memanggil prosidur C (prosidur jauh), yang kemudian pula memanggil prosidur D. Pada
penghujung carian data, prosidur D kembali kepada prosidur C, dan prosidur C kembali kepada
prosidur B, dan akhir sekali kembali kepada aturcara pelanggan.

CLIENT Program Procedure A


………… ………...
Call procedure A Search data
Continue …………
………… Return
…………
…………
Call procedure B
Continues Procedure B
………… ………...
End Search data
…………
Call Procedure C
Continue
…………
Return

Procedure C
………...
Procedure D Search data
……… …………
Search data Call Procedure D
……… Continue
Return ………
Return

Terangkan SATU senario aplikasi dimana sarang panggilan prosidur (setempat dan jauh) di atas
boleh berlaku – contohnya Sistem Kawalan Inventori Bahan Gantian. Tutor anda boleh
menasihati anda mengenai pilihan aplikasi. Contoh lain ialah aplikasi perbankan, aplikasi pelajar
dan sebagainya. Anda juga perlu menerangkan di mana pelayan, prosidur dan pangkalan data
ditempatkan di sistem rangkaian.
(20 markah)
Question 2

a) Tuliskan satu pseudo-kod bagi setiap aturcara atau prosidur berkaitan dengan Sistem
Kawalan Inventori Bahan Gantian, atau aplikasi pilihan anda dalam soalan 1 (di atas).
Sebagai pilihan, anda boleh memilih untuk menulis dalam bahasa pengaturcaraan C, Pascal,
atau Basic, akan tetapi anda tidak perlu mengkompil kerana hanya logik yang akan disemak.

(20 markah)

b) Tuliskan SATU esei bertajuk, “Komunikasi Antara Proses”. Esei anda perlu merangkumi
komunikasi segerak dan tak segerak, dengan menggunakan lebih kurang 400 patah
perkataan. Anda boleh menggunakan rajah untuk penjelasan yang lebih baik. Anda
dinasihatkan membuat rujukan dengan betul.

(20 markah)

You might also like