Create new send and receive functions

Assignment Help Operating System
Reference no: EM132251642

Lab - Design and implement versions of send() and receive() that record up to K messages per process.

As we discussed before, the low level messaging system in xinu has two important functions send and receive. One main issue with the low level messaging in xinu is there is only one message and if another message is sent to a process, this message will be ignored.

In this lab, you are required to change the original send and receive functions to allow sending and receiving up to K messages.

Help instructions (You do not have to follow the following instructions).

1. Edit the original send and receive functions or create new send and receive functions and call them sendk and receivek.

2. In your main function, you can call the new send and receive functions or you can create new shell commands to be able to call the new send and receive functions from the shell as you did in the midterm exam.

3. To show that your new xinu messaging system can now accept up to K messages. Assume K in your program as 5. Then, send 10 messages. So, if your system is working, you should fill a buffer of the first five messages and then show an error for the other five messages.

4. To receive the five messages sent before, you can get them from the buffer in FIFO or in LIFO. Your call!

5. prhasmsg flag should be updated to handle more situations (not only true and false) since a process can have more than one message i.e. up to k messages.

You need to update or improve the low level messaging system to allow it to receive and send K messages where, K can be any number.

The steps on how to do this program are given in the word file. You do not necessarily have to follow the same steps. You can modify the send.c and receive.c files or make your own sen.k and receive.k files

The most important thing to modify is process has a message flag (prhasmsg flag). It should not be true/ false but it should be a buffer.
Example: If k=5 then after flag has 5 messages it should give an error

Note: All the programming needs to be done in XINU

Attachment:- lab.rar

Verified Expert

The solution file is prepared in ms word and implemented in c programming which demonstrated about chat application between two processes send and receive messages should be based on set of buffer size. In our program we set buffer size as 20 if user enter more than 20 characters message then it will print error message and can not send message to server. The solution file consists of two programs , pdf file with coding and output screen shot and video file for program execution.

Reference no: EM132251642

Questions Cloud

What is one thing that should not be said via text message : What is one thing that should not be said via text message?. Including a topic sentence and at least three supporting details.
How does the healthcare issue get on the agenda : Setting Policy Agendas How does the healthcare issue get on the agenda and how does it stay there? Who was the entrepreneur/champion/sponsor of the healthcare.
What is the labor rate variance : The job was completed in 600 hours and the average actual labor rate was $19.20 per hour. What is the labor rate variance
Prepare a retained earnings statement for the year : Whispering Winds Company ended its fiscal year on July 31, 2019. Prepare a retained earnings statement for the year. Prepare an income statement for the year
Create new send and receive functions : Design and implement versions of send and receive that record up to K messages per process - create new shell commands
Calculate direct material cost and conversion cost : Cool Fizzy Ltd's division A produces soft drinks in standard sizes. Calculate direct material cost and conversion cost per equivalent unit for month of January
What is the role of state-based action coalitions : What is the role of state-based action coalitions and how do they advance goals of the Future of Nursing: Campaign for Action?
Research question for a systematic review : In this research question for a systematic review , the researchers use which approach to determine the answer to the question
Discuss risk factors and who is most at risk : This assignment is designed to have you think like a nurse. This paper will enhance your knowledge and understanding of pressure ulcer prevention.

Reviews

len2251642

3/8/2019 11:32:48 PM

To submit, create a ZIP file of the following items and submit on the course website: • A pdf file with all the codes of any file you edited or modified. [Highlighting modifications, showing the full path of each file, and fully commented code] • A compiled and tested (xinu) folder that includes all the subdirectories even files you did not change. You can “tar” this folder if you want. • A video demo. You should start with a short introduction of your modified codes followed by the backend open and finally, showing the results. If the video is too long, kindly, divide it into two or three videos.

len2251642

3/8/2019 11:31:26 PM

You need to update or improve the low level messaging system to allow it to receive and send K messages where, K can be any number. The steps on how to do this program are given in the word file. You do not necessarily have to follow the same steps. You can modify the send.c and receive.c files or make your own sen.k and receive.k files The most important thing to modify is process has a message flag (prhasmsg flag). It should not be true/ false but it should be a buffer. Example: If k=5 then after flag has 5 messages it should give an error Note: All the programming needs to be done in XINU For submission please submit a zip folder with all the code files and also the modifications that you did on code. I also need a video showing execution to the code as I will be getting grades on this

Write a Review

Operating System Questions & Answers

  Implementation of algorithms for process management

The Shortest Job Next (SJN) algorithm queues processes in a way that the ones that use the shortest CPU cycle will be selected for running rst.

  Develop a user mode command interpreter

Develop a user mode command interpreter which support list-short.

  Memory allocation in operating system

Analysis and implementation of algorithms for memory allocation in operating system, Explain First- t and best- t methods are used in memory allocation in operating systems.

  Stand alone child process

Forking the child process

  Write a multi-threaded program

Write a multi-threaded program to solve producer and consumer problem

  Marginal and average cost curves

n a competitive market place (pure competition) is it possible to continually sell your product at a price above the average cost of production.

  Simulating operating systems scheduling

Simulate the long-term scheduler, the short-term scheduler and the I/O scheduler of the computer using the First-Come-First-Serve algorithm.

  Issues with trusted platform module

Research paper discussing the issues with Trusted Platform Module (TPM)

  Threads

Explain a complication that concurrent processing adds to an operating system.

  Design and programming

Use the semaphore methods to control the concurrency of the solution

  Virtual machines

Virtual machines supported by a host operating system

  Discuss an application that benefits barrier synchronization

Discuss an application that would benefit from the use of barrier synchronization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd