Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. In using semaphores to control access to a critical section, we initialize the semaphores counter to 1. What happens if we initialize it to

1. In using semaphores to control access to a critical section, we initialize the semaphores counter to 1. What happens if we initialize it to 0? to 2?

2. Race conditions can occur if two or more processes can access a shared object at the same time. Suppose there are five processes, A, B, C, D and E. Is there a race condition if all five of these are using the same critical section at whatever times they like, if no one of these processes (nor any other) is able to modify values in the critical section? How is the answer different if only one of the processes can modify values in the critical section, or is there no difference between these two cases?

3. In describing messages used in most message passing systems, it was observed that header information was usually fixed-length but the data in the message (often called the payload) was usually variable length. What makes this a very efficient way to handle messages, i.e., why is it efficient for headers to be fixed length and payloads to be variable length?

4. There are two ways to know where the end of a variable length item, like a message payload, is. What are they? Which one does the Internet Protocol v4 use?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions