Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.What is time-slice? How is the end of the time slice indicated? 2.How is a pro

ID: 3850860 • Letter: 1

Question

1.What is time-slice? How is the end of the time slice indicated?

2.How is a process executed? What is the state of a process? How many states are there?

3.What is the context of a process? What is a context switch? What happens when a context switch needs to happen?

4.What is the most important program in the OS? What SW does it contain?

5.OS services: What are the services provided?

6.What are Threads? User threads and Kernel threads? Models of threading.

7.What do threads share?

8.Race condition? Effects of a race condition. How do you prevent it. HW and SW solutions – mutex. Acquiring & releasing a mutex. Where do you place a mutex.

9.Interrupts. What are they?

10.Deadlock? Resource allocation graph. Prevention.

Explanation / Answer

In a multitasking environment, the runtime of a process is called as the time slice or quantum. When a process is moved to the expired array, we can understand that the particular time slice is completed. A process is executed by multiple threads which execute the instructions concurrently. State of a process defines in which phase the process is in. The five states of the process are Start, Ready, Running, Wait, Terminated.