Exp2 Distributed Systems
Exp2 Distributed Systems
प्रयािराज–२११००४ [भारत]
Motilal Nehru National Institute of Technology Allahabad
Allahabad-211004 [India]
Programme Name: B.Tech Semester: VII Branch: Computer Science & Engg
Course Code: CS17201 Course Name: Distributed Systems (Lab)
Experiment No. 2
Experiment Description
i) There are two nodes A and B. Write a program to determine CPU load of
node B from node A.
ii) Write a server C program using shared memory and semaphore (server
increments counter between sem_wait() and sem_post()). Create shared
memory using mmap.
iii) Write a client C program that reads counter value between sem_wait() and
sem_post(). Access shared memory using open().