Logo

Operating-systems Questions Set 28:

Quiz Mode

Which command is used for string matching in the Linux/Ubuntu terminal?

1
2
3
4

Solution:

Which of the following is not a model for multithreading in operating systems?

1
2
3
4

Solution:

The circular wait condition in deadlock prevention can be prevented by

1
2
3
4

Solution:

The least number of temporary variables required to create a three-address code in static single assignment form for the expression q + r/3 + s – t * 5 + u * v/w is

Solution:

RAID level 3 supports a lower number of I/Os per second because

1
2
3
4

Solution:

The algorithm in which we split m frames among n processes to give everyone an equal share of m/n frames is known as:

1
2
3
4

Solution:

Let the page fault service time be 10 ms in a computer with average memory access time being 20 ns. If one page fault is generated for every 10^6 memory accesses, what is the effective access time for the memory?

1
2
3
4

Solution:

Consider the following processor design characteristics.

I. Register-to-register arithmetic operations only

II. Fixed-length instruction format

III. Hardwired control unit

Which of the characteristics above are used in the design of a RISC processor?

1
2
3
4

Solution:

Consider the following five disk five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.

(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)

Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests. Which one of the following statements is FALSE ?

1
2
3
4

Solution:

Consider the following two-process synchronization solution.

Process 0 Process 1 Entry: loop while (turn == 1); Entry: loop while (turn == 0); (critical section) (critical section) Exit: turn = 1; Exit turn = 0;

The shared variable turn is initialized to zero. Which one of the following is TRUE?

1
2
3
4

Solution: