- 1 2 3 Suppose In A Computer System Various I O Devices Generate 15 Interrupt Requests Concurrently Design A Diagram 1 (443.44 KiB) Viewed 24 times
1. 2. 3. Suppose in a computer system, various I/O devices generate 15 interrupt requests concurrently. Design a diagram
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. 2. 3. Suppose in a computer system, various I/O devices generate 15 interrupt requests concurrently. Design a diagram
1. 2. 3. Suppose in a computer system, various I/O devices generate 15 interrupt requests concurrently. Design a diagram and show how the system handles the multiple interrupts. There are four processes namely PO, P1, P2, and P3. Input, output, and the CPU burst time for each process (in milliseconds) are given in the following table. Input CPU burst time 12 Output processes. #include #include int main() { pid_t pid; pid_t pidl; pid_t pid2; pid = fork(); if (pid > 0) { pidl=fork()); printf("Hello\n"); } else if (pid1=0) { pid2=fork(); } printf("World\n"); } else PO { 6 printf("EWU"); } 5 P1 10 Illustrate the graphical representations and calculate the execution times of the processes in a) Multiprogrammed processing system and b) Time shared processing system (time quantum is 12) 13 6 a) User level b) Kernel level P2 Find the output for the following program. Determine the steps of the respective [CO2, C3, Mark: 3] 5 14 3 P3 9 Page 1 of 2 12 7 4. Suppose you are performing an arithmetic operation (e.g., 3+2-1*3) using a calculator software. You clicked the buttons for necessary operands and operators for this calculation. Then the software calculated and showed you the output on the screen. Briefly explain in which state/states the process was in given scenario. [CO1, C3, Mark: 5] 5. Suppose in a multiprocessing system, four threads namely T1, T2, T3, and T4 are running with four different processors namely CPU1, CPU2, CPU3, and CPU4 respectively. Design a diagram and show which of the following is suitable when multiple threads are waiting for I/O operations. Implementing threads: [CO1, C3, Mark: 5] February 6, 2022 [CO2, C3, Mark: 2] [CO1, C3, Mark: 5]