Write the send and receive primitives for stated processes

Assignment Help Operating System
Reference no: EM13144841

Question No.1:

Consider a scenario of post mailbox, there are two processes named sender S and receiver R. Both processes can communicate with each other by name along with message. You need to Identify what type of IPC is this?

Write the send and receive primitives for stated processes.

Identify at least three properties of communication channel or link in this scheme.

Question No.2:

Considering the performance of FCFS scheduling algorithm for three CPU bound processes, calculate the followings, If process P1 takes 19 seconds, P2 takes 23 seconds and P3 takes 8 seconds and processes arrive in order P1, P2 and P3:

a) Turnaround Time per process
b) Average Turnaround time of processes
c) Average waiting time of processes and identify either convey effect occurs or not.

Question No.3:

Using C programming language, write a program that uses the pthread library to create two threads and display certain messages. Messages must have following words and sequence:

First thread in process: My VU student ID is BC123456
Thread created
Second thread is in process: My Subject Code is CS604
Thread Created
(code:4 marks, compile and execute command on Ubuntu:2 marks and correct output:4 marks)

Note for Question No.3:

1) Do not write your program in other languages like Java, C++ etc. Write your program only in C language.

2) Do not execute your program in other operating systems like Windows, Mac etc. Execute your program only in Linux Ubuntu flavor.

3) You should provide three screen shots. Required three screen shots are given below.

I) Screen shots of your complete program that you write in C. Your screen shots should display your complete program code that you write in C.

II) Screen shot of Commands that you used to compile and run your program in Linux Ubuntu.

III) Screen shot of final output of your program shown.

4) In first line each student should display his own complete VU student ID and not the VU student ID of any other student.

Reference no: EM13144841

Questions Cloud

Coevolution occurs only between which groups : Coevolution occurs only between which groups?
Which of the three predator functional responses : Which of the three predator functional responses would you expect to be most likely to give stable populations, and why?
Describe structure and operations of foreign exchange market : Discuss the role of central government in establishing trade policy and providing environments that support or restrict international trade. Discuss the various International product and pricing decisions.
How many chromosomes are moving to each pole : If an organism has a diploid number of 16, how many chromatids are visible at the end of mitotic prophase? How many chromosomes are moving to each pole during mitotic anaphase?
Write the send and receive primitives for stated processes : Write the send and receive primitives for stated processes and processes can communicate with each other by name along with message. You need to Identify what type of IPC is this?
Process costing system basics : Which of the following products is more likely to be costed and controlled under a Job Order Costing system, rather than a Process Costing system?
Construct a tab two-way le : Construct a tab two-way le for this situation and hence, or otherwise, find the probability that a borrower defaulted on a car loan of unknown value
Find standard error of the mean if rainfall was recorded : If the rainfall was recorded on 27 (instead of 9) randomly selected days throughout the year, the standard error of the mean would be equal to?
Compute correlation coefficient between price and pages : Compute the cofficient of determination. Compute the correlation coefficient between the price and the number of pages.

Reviews

Write a Review

Operating System Questions & Answers

  Describe benefits of providing synchronization tool

Slim reader-writer locks favor neither readers nor writers, nor are waiting threads ordered in FIFO queue. Describe benefits of providing such a synchronization tool.

  Explaining the type of firewall

Can you think of conditions that call for multiple firewalls on the similar network or similar network segment? Discuss why might you firewall off two or more connections into a subnetwork?

  Formulate the linear programming model for this problem

Formulate the linear programming model for this problem Plot a graph indicating and labelling clearly all the constraints, the feasible region (R) and the optimal point (X)

  Steps and sub steps required to start an e business

Discuss the steps and sub steps required to start an e-business. Assume the Idea is already approved and the viability is already established through e-business plan.

  Explanation of osi model

Determine what if someone designs a communication methodology that does not comply with OSI but is compatible with the application layer and the physical layer.

  Analyze the benefits in selecting an operating system

Your group network plan can be supported through any network operating systems that SOPRO installs. The division supervisor wishes suggestions from the Networking Team on which OS would best suit the customers needs.

  Software faults - windows xp

Analysis shows that there are about five faults per 1000 lines of code in carefully made programs, which means that one million lines of codes will have 5000 faults.

  Compute number of disk tracks traversed by using fcfs-sstf

Compute number of disk tracks traversed by using FCFS, SSTF, SCAN, and LOOK algorithms for series of disk track service request given below.

  Explain what logic memory addresses

Explain how the computer system accommodating the 2G memory requirement by only using 1G physical memory. Assume that the page size is 4M, and so is the page frame size and Explain what logic memory addresses are, what physical memory addresses are..

  Security of information and data in an organization

The final security measure my company implements well is monitoring internet usage through limiting the access for most workers to search websites that are not related to the company.

  Provide reasons for a slow lan

Provide possible reasons for a slow LAN, fill in why each reason causes a slow LAN and provide your solution. Each reason will take a minimum of 150 words to address thoroughly.

  Compute the cost of 1 mbyte of main memory

Describe the meaning of Tc, Cc, Tm and Cm and compute the cost of 1 MByte of main memory using the above parameters.

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