17. Suppose there is a process with three threads that use the same amount of time to execute. Thread 1 spends 50% of its time waiting on I/O. Thread 2 spends 10% of its time waiting for information from Thread 1. Thread 3 spends 10% of it's time waiting for information from thread 2. How much of a speedup will there be if the threads are implemented as kernel-level threads on 2 processors as apposed to user-level threads?
a. A factor of 1.67
b. A factor of 1.88
c. A factor of 1.95
Ans: A factor of 1.88
Explanation: User threads are faster than kernel-level thread but because of two processer speedup is increased
17. Suppose there is a process with three threads that use the same amount of time...
1. Three threads are created by a process with pid 10. How many threads of execution are there after the creation assuming nothing has time to terminate? 2. Where are the PCBs for processes stored? (i) In an individual process’s memory in user-space. (ii) In a kernel data structure. (iii) Managed by some user-space OS service.
Five batch Threads. A through E, occurred in a Process X at almost the same time. They have estimated running times of 10, 6, 2, 4, and 8 msec. For each of the following thread scheduling algorithms, determine the mean thread turnaround time. Ignore thread switching overhead. A) Round robin. B) First-come, first-served (NP) (run in order 10, 6, 2, 4, 8).
TRUE-FALSE Basic synchronization principles and multithreading 1. Java user threads can implement both busy-waiting and no-busy-waiting policy. 2. Priority inversion avoids deadlocks. 3. Spinlock mutex can be used as an adaptive mutex. 4. Java RTE can be blocked for Input/Output operation. 5. Interrupted user thread, which executes a method in a monitor, must be rolled back to undo any changes it performed. 6. The synchronization primitive by disabling interrupts can be used by an application program. 7. Bounded-waiting requirement is...
Question III This question carries 20% of the marks for this assignment. Given the following mix of tasks, task lengths and arrival times, compute the completion [5 marks and response time time from the arrival to the finish time) (5 marks for each task, along with the average response time for the FIFO. RR and SJF algorithms. Assume a time slice of 10 milliseconds and that all times are in milliseconds. You are kindly asked to provide the Gantt Chart...
art 250 Choose the best answer of both hands at the same time is A. flow process chart simultaneous-motion (SIMO) chart 2 The best chart used to analyze the Body is called B. Operations charts D. None of the above 3. In a stopwatch time study, the average time it takes a given worker to perform a task a certain number of times is the: A. Observed time B. Normal time C. Standard time D. Performance rating time Labor Standards...
1) Repeated doubling, in which each doubling occurs in the same amount of time, is a hallmark of linear growth. A) True B) False 2) Money in a bank account earning compound interest at an annual percentage rate of 3% represents an example of linear growth. A) True B) False 3) Suppose you had a magic bank account in which your balance doubled each day. If you started with just $ 1, you'd be a millionaire in less than a...
Computer upgrades have a nominal time of 80 minutes. Samples of five observations each have been taken, and the results are as listed. SAMPLE 1 2 3 4 5 6 79.2 80.5 79.6 78.9 80.5 79.7 78.8 78.7 79.6 79.4 79.6 80.6 80.0 81.0 80.4 79.7 80.4 80.5 78.4 80.4 80.3 79.4 80.8 80.0 81.0 80.1 80.8 80.6 78.8 81.1 Factors for three-sigma control limits for x¯ and R charts FACTORS FOR R CHARTS Number of Observations in Subgroup, n...
C Programming - Please Help us! Implementing Load Balancing, the 3 Base Code files are at the bottom: Implementing Load Balancing Summary: In this homework, you will be implementing the main muti-threaded logic for doing batch based server load balancing using mutexes Background In this assignment you will write a batch-based load balancer. Consider a server which handles data proces- sing based on user requests. In general, a server has only a fixed set of hardware resources that it can...
Since it wasn't answered (ran out of time), I changed my question so that ONLY the correct answers are on here. Question 1 Interest is the difference between the amount borrowed and the principal. FALSE Question 2 Compound interest is computed on the principal and any interest earned that has not been paid or withdrawn. TRUE Question 3 When the periodic payments are not equal in each period, the future value can be computed by using a future value of...
TRUE/FALSE QUESTIONS: Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for all potential types of non-standard inputs that might be exploited by an attacker to subvert a program. 2. Without suitable synchronization of accesses it is possible that values may be corrupted, or changes lost, due to over-lapping access, use, and replacement of shared values. 3. The biggest change of the nature in Windows XP SP2 was to change all anonymous remote procedure call (RPC)...