Answer: router
Explanation:
a router directs flow of information
Answer: C) spin-lock with test and set
Explanation:
In spinlock, when a thread locks a spinlock then it continuously retrying locking until it succeeds. Spinlock is the lock that cause thread and continuously check that whether the lock are available or not for synchronization.
So that is why spinlock is best synchronization solution as it is not allowing any another thread.
On the other hand, in mutex thread try to lock a mutex and then, it automatically go to sleep mode before locking and immediate allow another thread to run.
The answer & explanation for this question is given in the attachment below.
Answer:
yes
Explanation:
If it is guranteed the key is only known to Alice and Bob and there is no risk of man in the middle attack or channel spoofing so we can achieve data origin authentication
The code of five digits is of the form:
A B C D F
Where A (the first digit) may be any of 9 digits (because 0 is excluded)
B, C, and D, may be each any of 10 digits (0 - 9)
F (the last digit) may be 0, 2, 4, 6 or 8, i.e. 5 different digits.
So the number of different available codes is:
9 * 10 * 10 * 10 * 5 = 45,000.
Answer: 45,000