Consider a CPU that has to execute two types of processes. The first type,
Actuators (A), requires a CPU burst of 6 seconds. The second type, Controllers (C),
requires a CPU burst of 8 seconds. A new process of type A arrives at time π‘ = 10,
20, 30, 40, and 50 (in seconds). Similarly, a new process of type C arrives at time π‘ =
11, 22, 33, 44, and 55 (in seconds). The CPU scheduling policy is First Come First
Serve (FCFS). The first process of type A starts running at π‘ = 10 seconds. The
average waiting time (in seconds) for the 10 processes is ___________. (rounded off
to one decimal place)
This problem tests FCFS (First Come First Served) CPU scheduling with two process types arriving at fixed intervals.
Step 1: List arrival times and burst times. Actuator processes A1-A5 arrive at \(t = 10, 20, 30, 40, 50\) seconds, each with burst time 6 seconds. Controller processes C1-C5 arrive at \(t = 11, 22, 33, 44, 55\) seconds, each with burst time 8 seconds.
Step 2: Apply the FCFS rule. In FCFS the CPU always serves whichever already-arrived process has been waiting the longest, and each process runs to completion once started (non-preemptive). Since A1 is given to start at \(t = 10\), the CPU timeline is built process by process, always choosing the earliest-arrived pending process at each completion instant.
Step 3: Build the execution timeline.
| Process | Arrival | Start | Burst | Finish | Waiting = Start - Arrival |
|---|---|---|---|---|---|
| A1 | 10 | 10 | 6 | 16 | 0 |
| C1 | 11 | 16 | 8 | 24 | 5 |
| A2 | 20 | 24 | 6 | 30 | 4 |
| C2 | 22 | 30 | 8 | 38 | 8 |
| A3 | 30 | 38 | 6 | 44 | 8 |
| C3 | 33 | 44 | 8 | 52 | 11 |
| A4 | 40 | 52 | 6 | 58 | 12 |
| C4 | 44 | 58 | 8 | 66 | 14 |
| A5 | 50 | 66 | 6 | 72 | 16 |
| C5 | 55 | 72 | 8 | 80 | 17 |
At each completion instant, whichever pending process (A-type or C-type) has the smaller arrival time is dispatched next, since it has been sitting in the ready queue longer.
Step 4: Compute average waiting time. Sum of waiting times \(= 0+5+4+8+8+11+12+14+16+17 = 95\) seconds.
\[ \text{Average waiting time} = \frac{95}{10} = 9.5 \text{ seconds} \]
Final Answer: \(\boxed{9.5}\) seconds
A schedule of three database transactions \(T_1\), \(T_2\), and \(T_3\) is shown. \(R_i(A)\) and \(W_i(A)\) denote read and write of data item A by transaction \(T_i\), \(i = 1, 2, 3\). The transaction \(T_1\) aborts at the end. Which other transaction(s) will be required to be rolled back?

Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.

Consider the following statements:
Which ONE of the following is CORRECT?
Consider the routing protocols given in List I and the names given in List II:

For matching of items in List I with those in List II, which ONE of the following options is CORRECT?