Semaphores are very useful in process synchronization and multithreading. But how to use one in real life, for example say in C Language? Well, we… Read More
Category Archives: Operating Systems Questions
The most optimal scheduling algorithm is : (A) First come first serve (FCFS) (B) Shortest Job First (SJF) (C) Round Robin (RR) (D) None of… Read More
Time-sharing means sharing of computing resources among many users (processes) by means of multiprogramming and multitasking. By allowing a large number of users to interact… Read More
Which of the following commands or sequences of commands will rename a file x to file y in a Unix system? I. mv y, x… Read More
Which of the following is FALSE about SJF (Shortest Job First Scheduling)? S1: It causes minimum average waiting time S2: It can cause starvation (A)… Read More
A certain computation generates two arrays a and b such that a[i]=f(i) for 0 ≤ i < n and b[i]=g(a[i]) for 0 ≤ i <… Read More
A shared variable x, initialized to zero, is operated on by four concurrent processes W, X, Y, Z as follows. Each of the processes W… Read More
Consider data given in the above question. What is the minimum number of page colours needed to guarantee that no two synonyms map to different… Read More
A computer uses 46–bit virtual address, 32–bit physical address, and a three–level paged page table organization. The page table base register stores the base address… Read More
If the quantum time of round robin algorithm is very large, then it is equivalent to: (A) First in first out (B) Shortest Job Next… Read More
Which of the following process scheduling algorithm may lead to starvation (A) FIFO (B) Round Robin (C) Shortest Job Next (D) None of the above… Read More
Put the following disk scheduling policies results in minimum amount of head movement. (A) FCFS (B) Circular SCAN (C) Elevator Answer: (C) Explanation: Circular scanning… Read More
Normally user programs are prevented from handling I/O directly by I/O instructions in them. For CPUs having explicit I/O instructions, such I/O protection is ensured… Read More
From amongst the following given scenarios determine the right one to justify interrupt mode of data-transfer: Source: nptel (A) Bulk transfer of several kilo-byte (B)… Read More
We describe a protocol of input device communication below. a. Each device has a distinct address b. The bus controller scans each device in sequence… Read More