Recent questions tagged operating-system

93 93 votes
8 answers 8 answers
33.9k
33.9k views
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is $4$ bytes in size. Given a $100 \times 10^6$ bytes disk o...
106 106 votes
6 answers 6 answers
28.4k
28.4k views
Barrier is a synchronization construct where a set of processes synchronizes globally i.e., each process in the set arrives at the barrier and waits for all others to arr...
95 95 votes
6 answers 6 answers
29.2k
29.2k views
Consider the following snapshot of a system running $n$ processes. Process $i$ is holding $x_i$ instances of a resource $R$, $ 1\leq i\leq n$ . Currently, all instances ...
92 92 votes
11 answers 11 answers
53.8k
53.8k views
Consider three processes, all arriving at time zero, with total execution time of $10$, $20$ and $30$ units, respectively. Each process spends the first $20\%$ of executi...
73 73 votes
9 answers 9 answers
41.0k
41.0k views
Consider three processes (process id $0$, $1$, $2$ respectively) with compute time bursts $2$, $4$ and $8$ time units. All processes arrive at time zero. Consider the lon...
89 89 votes
7 answers 7 answers
39.5k
39.5k views
A computer system supports $32$-bit virtual addresses as well as $32$-bit physical addresses. Since the virtual address space is of the same size as the physical address ...
67 67 votes
6 answers 6 answers
37.6k
37.6k views
A CPU generates $32$-bit virtual addresses. The page size is $4$ KB. The processor has a translation look-aside buffer (TLB) which can hold a total of $128$ page table en...
148 148 votes
11 answers 11 answers
43.2k
43.2k views
The atomic fetch-and-set $x, y$ instruction unconditionally sets the memory location $x$ to $1$ and fetches the old value of $x$ in $y$ without allowing any intervening a...
1 1 vote
1 1 answer
10.0k
10.0k views
Fragmentation isa. dividing the secondary memory into equal sized fragmentsb. dividing the main memory into equal size fragmentsc. fragments of memory world used in a pag...
34 34 votes
4 answers 4 answers
11.9k
11.9k views
Assume that there are $3$ page frames which are initially empty. If the page reference string is $\text{1, 2, 3, 4, 2, 1, 5, 3, 2, 4, 6}$ the number of page faults using ...
40 40 votes
4 answers 4 answers
13.7k
13.7k views
Consider the following set of processes that need to be scheduled on a single CPU. All the times are given in milliseconds.$$\small \begin{array}{|c|c|c|} \hline \textbf{...
70 70 votes
6 answers 6 answers
36.9k
36.9k views
An operating system uses the Banker's algorithm for deadlock avoidance when managing the allocation of three resource types $X, Y,$ and $Z$ to three processes $P0, P1,$ a...
76 76 votes
3 answers 3 answers
36.4k
36.4k views
Which one of the following is FALSE?User level threads are not scheduled by the kernel.When a user level thread is blocked, all other threads of its process are blocked.C...
46 46 votes
5 answers 5 answers
20.3k
20.3k views
Suppose a disk has $201$ cylinders, numbered from $0$ to $200$. At some time the disk arm is at cylinder $100$, and there is a queue of disk access requests for cylinders...
179 179 votes
15 answers 15 answers
51.3k
51.3k views
Fetch_And_Add(X,i) is an atomic Read-Modify-Write instruction that reads the value of memory location $X$, increments it by the value $i$, and returns the old value of $X...
82 82 votes
9 answers 9 answers
33.7k
33.7k views
Consider the $3$ processes, $P1, P2$ and $P3$ shown in the table. $$\small \begin{array}{|c|c|c|} \hline \textbf{Process} & \textbf{Arrival Time} & \textbf{Time Units Req...
35 35 votes
4 answers 4 answers
10.1k
10.1k views
Free disk space can be used to keep track of using a free list or a bit map. Disk addresses require $d$ bits. For a disk with $B$ blocks, $F$ of which are free, state the...
53 53 votes
5 answers 5 answers
19.8k
19.8k views
Four jobs are waiting to be run. Their expected run times are $6, 3, 5$ and $x.$ In what order should they be run to minimize the average response time?Write a concurrent...
4 4 votes
1 1 answer
4.7k
4.7k views
Calculate the total time required to read 35 sectors on a 2-sided floppy disk. Assume that each track has 8 sectors and the track-to-track step time is 8 milliseconds. Th...
68 68 votes
12 answers 12 answers
26.9k
26.9k views
If an instruction takes $i$ microseconds and a page fault takes an additional $j$ microseconds, the effective instruction time if on the average a page fault occurs every...
141 141 votes
11 answers 11 answers
38.1k
38.1k views
Consider $n$ processes sharing the CPU in a round-robin fashion. Assuming that each process switch takes $s$ seconds, what must be the quantum size $q$ such that the over...
39 39 votes
5 answers 5 answers
14.0k
14.0k views
The overlay tree for a program is as shown below:What will be the size of the partition (in physical memory) required to load (and run) this program?$\text{12 KB}$$\text{...
36 36 votes
3 answers 3 answers
11.5k
11.5k views
Formatting for a floppy disk refers toarranging the data on the disk in contiguous fashionwriting the directoryerasing the system datawriting identification information o...
39 39 votes
4 answers 4 answers
21.2k
21.2k views
A computer has six tape drives, with $n$ processes competing for them. Each process may need two drives. What is the maximum value of $n$ for the system to be deadlock fr...
24 24 votes
5 answers 5 answers
17.5k
17.5k views
A counting semaphore was initialized to $10$. Then $6 P$ (wait) operations and $4V$ (signal) operations were completed on this semaphore. The resulting value of the semap...
42 42 votes
5 answers 5 answers
15.6k
15.6k views
When the result of a computation depends on the speed of the processes involved, there is said to becycle stealingrace conditiona time locka deadlock
24 24 votes
4 answers 4 answers
7.5k
7.5k views
Which of the following is an example of a spooled device?The terminal used to enter the input data for the C program being executedAn output device used to print the outp...
34 34 votes
4 answers 4 answers
19.6k
19.6k views
Which of the following devices should get higher priority in assigning interrupts?Hard diskPrinterKeyboardFloppy disk
190 190 votes
11 answers 11 answers
49.1k
49.1k views
A certain computation generates two arrays a and b such that $a[i] = f(i)$ for $0 \leq i < n$ and $b[i] = g(a[i])$ for $0 \leq i < n$. Suppose this computation is decompo...
99 99 votes
10 answers 10 answers
39.3k
39.3k views
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$ and $X$ reads $x$ from memory, ...