Operating Systems Questions

Q:

What is pre-emptive and non-preemptive scheduling?

Answer

Preemptive scheduling: The preemptive scheduling is prioritized. The highest priority process should always be the process that is currently utilized.


Non-Preemptive scheduling: When a process enters the state of running, the state of that process is not deleted from the scheduler until it finishes its service time.

Report Error

View answer Workspace Report Error Discuss

0 2862
Q:

What is a daemon?

Answer

Daemon is a program that runs in the background without user’s interaction. A daemon runs in a multitasking operating system like UNIX. A daemon is initiated and controlled by special programs known as ‘processes’.

Report Error

View answer Workspace Report Error Discuss

0 2851
Q:

What scheme does the Kernel in Unix System V follow while choosing a swap device among the multiple swap devices?

Answer

Kernel follows Round Robin scheme choosing a swap device among the multiple swap devices in Unix System V.

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

8 2778
Q:

What are short, long and medium-term scheduling?

Answer

Long term scheduler determines which programs are admitted to the system for processing. It controls the degree of multiprogramming. Once admitted, a job becomes a process.


Medium term scheduling is part of the swapping function. This relates to processes that are in a blocked or suspended state. They are swapped out of real-memory until they are ready to execute. The swapping-in decision is based on memory-management criteria.


Short term scheduler, also know as a dispatcher executes most frequently, and makes the finest-grained decision of which process should execute next. This scheduler is invoked whenever an event occurs. It may lead to interruption of one process by preemption.

Report Error

View answer Workspace Report Error Discuss

0 2773
Q:

What is thrashing?

Answer

It is a phenomenon in virtual memory schemes when the processor spends most of its time swapping pages, rather than executing instructions. This is due to an inordinate number of page faults.

Report Error

View answer Workspace Report Error Discuss

0 2672
Q:

Differentiate between Complier and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions

Report Error

View answer Workspace Report Error Discuss

0 2663
Q:

High level language is also called as ?

A) Business oriented language B) Mathematically oriented language
C) Problem oriented language D) All of above
 
Answer & Explanation Answer: D) All of above

Explanation:
Report Error

View Answer Report Error Discuss

9 2606
Q:

What are the various types of CPU registers in a regular operating system design ?

Answer

 Stack Pointer
 Index Registers
 Accumulators
 General Purpose Registers

Report Error

View answer Workspace Report Error Discuss

3 2513