Os Viva Questions
Os Viva Questions
1. User thread
2. Kernel thread
User threads are easy to create and are created in user space.
Kernel threads are supported directly by the operating system.
25.What are multithreading models?
• Many-to-one model
• One-to-one model
• Many-to –many
26.What is process synchronization?
A situation, where several processes access and manipulate the same data
concurrently and the outcome of the execution depends on the particular order in
which the access takes place, is called race condition. To guard against the race
condition we need to ensure that only one process at a time can be manipulating
the same data. The technique we use for this is called process synchronization.
27.What is CPU Scheduler?
Selects from among the processes in memory that are ready to execute,
and allocates the CPU to one of them.
28.What is Throughput, Turnaround time, waiting time and Response time?
Throughput – number of processes that complete their execution per
time unit.
Turnaround time – amount of time to execute a particular process
Waiting time – amount of time a process has been waiting in the ready
queue.
Response time – amount of time it takes from when a request was submitted until
the first response is produced, not output.