Reference no: EM131840769
1. Check the conditions for concurrent processing (mutual exclusion, deadlock avoidance, and starvation avoidance) for the following modifications of Petersen's algorithm; if any condition if violated, show the steps leading to this violation:
A.
Pi()
while (true)
wantsIn[i) = true;
turn = i; // instead of j
while (wantsIn[j) && turn == j ) ;
critical section;
wantsIn[i) = false;
B.
Pi()
while (true)
wantsIn[i] = true;
turn = i; // instead of j
while (wantsIn[j] && turn = = i; // instead of j
critical section;
wantsIn[i] = false; i);
2. Determine the correctness of the following algorithm; if it is incorrect, show an example in which one of conditions for the critical-section problem is violated. Two processes Po and PI share the following variables:
Two processes Po and PI share the following variables:
boolean wantsIn[2] = {false, false};
int turn;
here is the code for process Pi, i = 0 or 1, and j = 0 or 1 (i.e., j = 1 - i).
Pi ( )
while (true)
wantsIn(i] = true;
while (turn == j)
while (wantsIn[j]);
turn = i;
critical section;
wantsIn[i] = false;
Credit card application from shady banks savings
: You receive a credit card application from Shady Banks Savings and Loan offering an introductory rate of 3.5 percent per year,
|
Find the year zero cash flow
: Spend 100000 on Machine C. You will need 5000 more in net working capital. Find the year zero cash flow. Find the total CF for each year.
|
Why would anyone want to murder martin luther king
: How was the exercise that Elliott designed a response to the children's question, Why would anyone want to murder Martin Luther King?
|
Call option value using the two-sate stock price method
: calculate your estimate of the call option's value using the two-sate stock price method.
|
Determine the correctness of the algorithm
: Determine the correctness of the algorithm; if it is incorrect, show an example in which one of conditions for the critical-section problem
|
Internet browsing history
: This can be clothes, a bedroom, a written essay, contents in a backpack, a car interior, music playlists, an Internet browsing history, and so on.
|
Build manpower planner for electrical engineering department
: As a start, you were requested to build a Manpower Planner for the Electrical Engineering Department, particularly for its Diploma Program
|
Coupon rate that is greater than its yield to maturity
: A bond with several years to maturity has a coupon rate that is greater than its yield to maturity. The bond will:
|
Write a one to two page faq sheet for the intended audience
: Write a one to two page FAQ sheet for the intended audience and purpose. On a separate page within the same document.
|