Operating System - Process Concurrency & Synchronization

1:  

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.

Write your comments here:



2:  

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.

Write your comments here:



3:  

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

Write your comments here:



4:  

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

Write your comments here:



5:  

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.
If x is 18, i.e 18 V operations  on counting semaphore with value 7 will make it 25 .
and 20 P operations will make it 5.
Hence the answer.

Click on Discuss to view users comments.

Write your comments here:




Syllabus covered in this section is-

  • Main functions of operating systems
  • Multiprogramming, multiprocessing and multitasking
  • Memory Management- Virtual memory, paging, fragmentation
  • Concurrent Processing: Mutual exclusion, Critical regions, locks and unlock.
  • Scheduling: CPU scheduling. I/O scheduling, Resource scheduling
  • Deadlock and scheduling algorithms.
  • Banker's algorithm for deadlock handling.

This Section covers Operating System Questions Answers .These questions can be used for the preparation of various competitive and academic exams like

  • UGC NET Computer Science
  • Pre PhD Entrance Exam
  • DOEACC Exams
  • Kendriya Vidyalaya Sangathan Entrance Exam
  • Undergraduate Computer Science Examinations
  • GATE Computer Science
  • Post Graduate Computer Science Test
  •  PhD Entrance Exam
  • Computer Engineering
  • State Eligibility Test (SET)
  • National Eligibility Test (NET)

Who can benefit

  • Operating System Objective Questions Answers can be used by any student who is preparing for PhD entrance exam, pre PhD entrance exam, entrance exam or any other such exam.
  • Any student who is preparing for DOEACC exams can also use Operating System questions answers for preparation of his exams.
  • Operating System mcq can be useful for the students who are pursuing any undergraduate or post graduate degree in computer science like BE, ME , Btech, Mtech, .BSc, MSc, BCA, MCA, BS, MS  or any other such degree
  • Operating System mcq with answers and explanation can also be useful for the students who are preparing for any competitive exam or recruitment exams like GATE Computer Science, UGC NET Computer Science, Kendriya Vidyalaya Sangathan PGT exam, PSU, IES or any other such exam.
  • Operating System multiple choice questions answers  can also be used by any candidate who wants to gain credits in Operating System in BS Computer science or MS Computer science,
  • You can download Operating System mcq pdf from this site.
  • You can get access to Operating System multiple choice questions answers EBook.

Various search terms used for This section are

  • Operating System Quiz Questions With Answers

  • Operating System Exam Questions Answers

  • Operating System Mcq Questions Answers

  • Operating System Mcq Pdf Download