Answer:
b) Bounded Waiting
Explanation:
int currentThread = 1;
bool thread1Access = true;
bool thread2Access = true;
thread1 { thread2 {
While (true) {
While (true)
{
while(thread2Access == true)
{
while(thread1Access == true)
{
If (currentThread == 2) {
If (currentThread == 1)
{
thread1Access = false; thread2Access = false;
While (currentThread == 2);
While (currentThread == 1);
thread1Access = true; thread2Access = true;
} }
/* start of critical section */ /* start of critical section */
currentThread = 2 currentThread = 1
… ...
/* end of critical section */ /* end of critical section */
thread1Access = false; thread2Access = false;
… ...
} }
} }
} }
It can be seen that in all the instances, both threads are programmed to share same resource at the same time, and hence this is the bounded waiting. For Mutual exclusion, two threads cannot share one resource at one time. They must share simultaneously. Also there should be no deadlock. For Progress each thread should have exclusive access to all the resources. Thus its definitely the not the Progress. And hence its Bounded waiting.
Answer:
a). SLE =$37.5
b). ARO =75
c). ALE = $2,812.5
Explanation:
a).Single loss Expectancy (SLE) is starting point in determining the single loss of an asset that will occur and calculated this;
SLE = asset value * exposure factor.
Asset value =$500,
Exposure factor is simply the percentage of asset lost.
In this case out of 1000 phones, 75 were damaged or loss.
In percentage;
75 ÷ 1000 =0.075, 0.075×100=7.5%(exposure factor).
Therefore,
SLE = $500×7.5%= $37.5.
b). ARO - Annual Rate of Occurrence is the number of times a threat on a single asset is expected to occur in one year.
In the case the damage or loss occured in 75 devices in one year.
c). ALE - Annualized loss Expectancy is the product of SLE and ARO.
Therefore;
ALE = $37.5 × 75 = $2,812.5.