In a time-sharing operating system, when the time slot given to a process is completed, the process goes from the RUNNING state to the
A. | BLOCKED state |
B. | READY state |
C. | SUSPENDED state |
D. | TERMINATED state |
Option: B Explanation : Click on Discuss to view users comments. |
Mutual exclusion problem occurs between
A. | two disjoint processes that do not interact |
B. | processes that share resources |
C. | processes that do not use the same resource |
D. | none of these |
Option: B Explanation : Click on Discuss to view users comments. |
A file server uses a form of locking as a concurrency control technique. When a file is locked by a client, all attempts to use or lock the file by other clients are prevented by the server. A potential problem exists if a client requests a lock on a file and then crashes. This situation could result in the file being locked indefinitely. To prevent this from occurring, the file server starts a time whenever it sets a lock. If the timer runs out before the file is unlocked the server assumes that the client has crashed and releases the lock. Which of the following is (are) true of this strategy?
A. | It provides a solution to the problem of preventing indefinite lockout. |
B. | It may result in interleaved access to a file by two or more clients. |
C. | It will guarantee mutual exclusion. |
D. | It will fail to guarantee the prevention of indefinite lockout |
Option: A Explanation : Click on Discuss to view users comments. sailendra said: (5:45pm on Sunday 21st August 2016)
it will guarantee mutual exclusion also because if locks the file other process cannot get that file so i think it satisfy third option also
|
At a particular time, the value of a counting semaphore is 10. It will become 7 after
A. | 3 V operations |
B. | 3 P operations |
C. | 5 V operations and 2 P operations |
D. | None of these |
Option: B Explanation : P means wait ie S:= S-1; V means signal i.e S= S+1; Click on Discuss to view users comments. Amit Ahlawat said: (6:24pm on Wednesday 10th July 2013)
v means wait and 1 in listp means processed and -1 in the list
|
At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were completed on this semaphore. If the final value of the semaphore is 5, x will be
A. | 22 |
B. | 18 |
C. | 15 |
D. | 13 |
Option: B Explanation :
Each P operation will decrease the semaphore value by 1 and V operation increases by 1. Click on Discuss to view users comments. |
Syllabus covered in this section is-
This Section covers Operating System Questions Answers .These questions can be used for the preparation of various competitive and academic exams like
Who can benefit
Various search terms used for This section are