Correct Answer: Scheduling is the activity of the deciding when process will receive the resources they request FCS ---> FCSFS stands for First Come First Served In FCFS the job that has been waiting the longest is served next Round Robin Scheduling--->Round Robin scheduling is a scheduling method where each process gets a small quantity of time to run and then it is preempted and the next process gets to run This is called time-sharing and gives the effect of all the processes running at the same time Shortest Job First ---> The Shortest job First scheduling algorithm is a nonpreemptive scheduling algorithm that chooses the job that will execute the shortest amount of time Priority Scheduling--->Priority scheduling is a scheduling method where at all times the highest priority process is assigned the resource
Correct Answer: A binary semaphore is one, which takes only 0 and 1 as values They are used to implement mutual exclusion and synchronize concurrent processes
Correct Answer: Data registers - can be assigned to a variety of functions by the programmer They can be used with any machine instruction that performs operations on data Address registers - contain main memory addresses of data and instructions or they contain a portion of the address that is used in the calculation of the complete addresses
Correct Answer: When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state System is in safe state if there exists a safe sequence of all processes Deadlock Avoidance : ensure that a system will never enter an unsafe state
9. What is the difference between microkernel and macro kernel?
Correct Answer: Micro-kernal : A micro-kernel is a minimal operating system that performs only the essential functions of an operating system All other operating system functions are performed by system processes Monolithic : A monolithic operating system is one where all operating system code is in a single executable image and all operating system code runs in system mode
10. What is the difference between Hard and Soft real-time systems?
Correct Answer: A hard real-time system guarantees that critical tasks complete on time This goal requires that all delays in the system be bounded from the retrieval of the stored data to the time that it takes the operating system to finish any request made of it A soft real time system where a critical real-time task gets priority over other tasks and retains that priority until it completes As in hard real time systems kernel delays need to be bounded