Question: Operating System and File Organization Please answer ASAP 1. [1 pt] Write at least two main purposes of an operating system. 2. [1 pt] What
![at least two main purposes of an operating system. 2. [1 pt]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2e68932911_76066f2e688bf6ee.jpg)
1. [1 pt] Write at least two main purposes of an operating system. 2. [1 pt] What is the purpose of interrupts? Research the differences between a trap and an interrupt. 3. [1.5 pt] Check out the source code on the next page and explain what the output will be at lines X and Y. 4. [1.5 pt] What are the two models of interprocess communication? What are the strengths and weaknesses of the two approaches? Source code for Q3 \#include \#include stdio.h > \#include \#define SIZE 5 int nums [ SIZE ]={0,1,2,3,4}; int main() \{ int i; pid_t pid; pid=fork(); if (pid=0){ for (i=0;i 0) \{ wait (NULL); for (i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
