Case Study In this assignment you are going to simulate the implementation of RPC using tuple spaces. The idea here is to simulate not to implement at the system level, so basically you will build a multithreaded application using multiple threads (n+1 threads), n threads are those thread that simulate the client RPC calls for the operation to be performed, and the one thread is a looping server that takes client calls, and write results to the tuple space.
Keep in mind that in tuple spaces a ‘take’ operation will block if it can’t match the results.
So, the client will place an operation, using the ‘write’ method of tuple spaces, to place a tuple that contains the operation id (unique), the operation itself, and the operation parameters (you can simulate these however way you want). Basically the operations are going to be the same operations that are in assignment 1, except now they are associated with an operation ID and they have simulated parameters (1, 2, or 3 of different types in the tuple space).
Once again, the server doesn’t actually do the work, it just places the results that match the operation in the tuple space for the calling thread to unblock and take the results from the tuple space.
Just like assignment 1, the value of n is generated at random in the main program, and the n operations in the threads are also generated at random each with a unique identifier when you start each thread.
Keep in mind, that even though you might lock the tuple space, you may not do the take until a match has been found, and therefore you must wait on a condition to be true.
Your threads must display on the screen when the operation has been called (placed in the tuple space), executed by the server, and the result is taken back by the client. Each thread must identify itself using a number as to what operation it did or didn’t do.
The server thread will run forever, so you may consider a forked process for this if you’d like, but you don’t have to. This program must be developed in C, and submitted on Blackboard.
When in doubt do not make any assumptions that trivialize the problem, you need to ask questions and clarify and verify with the instructor.
MyAssignmenthelp.com is highly acknowledged for providing best quality online dissertation help. With a talented team of dissertation experts, we are capable of providing top-notch quality inclusive dissertation help services. Each cheap dissertation writers of our team has acquired PhD degree in his or her respective field of study. Thus, students, who often wonder, can someone write my dissertation for me or can expert write my dissertation at cheap price, find our experts as the helping hand in writing dissertations.
Just share requirement and get customized Solution.
Orders
Overall Rating
Experts
Our writers make sure that all orders are submitted, prior to the deadline.
Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.
Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.
Our writers can provide you professional writing assistance on any subject at any level.
Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.
Get all your documents checked for plagiarism or duplicacy with us.
Get different kinds of essays typed in minutes with clicks.
Calculate your semester grades and cumulative GPa with our GPA Calculator.
Balance any chemical equation in minutes just by entering the formula.
Calculate the number of words and number of pages of all your academic documents.
Our Mission Client Satisfaction
Dear Expert Thank you for your service and support. The work was good, I got 72%.
Australia
WHAT AN FANTASTIC OUTCOME I RECEIVED!! My essay subject was very difficult with many parts! My MAH\'s expert NAILED IT!!!! thanks a million! I WILL BE BACK!
Australia
It was a very well done job. The writings are accurate and supported with reliable resources which were related to the assignment. It was done on time and quick service.
Australia
Hi, Received the grades for this assignment this morning. Good grades with some minor feedback. Professor is happy with the content, referencing and especially the way assignment was written. Please pass on my thanks and regards to the expert who did...
Australia